tty: Fix kcon & tty implementation; Add stub ptmx

This commit is contained in:
EnderIce2
2024-10-13 13:00:22 +03:00
parent f48032658f
commit 396ad681ba
18 changed files with 895 additions and 404 deletions

View File

@ -213,6 +213,7 @@ namespace Tasking
}
this->FileDescriptors = new FileDescriptorTable(this);
this->tty = nullptr;
/* If create page table */
if (UseKernelPageTable == false)
@ -268,6 +269,10 @@ namespace Tasking
debug("Closing file descriptors");
delete this->FileDescriptors;
debug("Deleting tty");
if (this->tty)
delete ((TTY::TeletypeDriver *)this->tty);
/* If we own the pointer to the
PageTable, we need to free it */
if (this->PageTable && OwnPageTable)