mirror of
https://github.com/RGBCube/serenity
synced 2025-07-10 04:37:35 +00:00
Various things:
- putch syscall now directly calls Console::putChar(). - /proc/summary includes some info about kmalloc stats. - Syscall entry is guarded by a simple spinlock. - Unmap regions for crashed tasks.
This commit is contained in:
parent
c80a1f39ce
commit
ccd15e0590
5 changed files with 82 additions and 8 deletions
|
@ -366,6 +366,8 @@ void Task::sys$exit(int status)
|
|||
|
||||
setState(Exiting);
|
||||
|
||||
MemoryManager::the().unmapRegionsForTask(*this);
|
||||
|
||||
s_tasks->remove(this);
|
||||
|
||||
if (!scheduleNewTask()) {
|
||||
|
@ -382,7 +384,7 @@ void Task::taskDidCrash(Task* crashedTask)
|
|||
{
|
||||
// NOTE: This is called from an excepton handler, so interrupts are disabled.
|
||||
crashedTask->setState(Crashing);
|
||||
// crashedTask->dumpRegions();
|
||||
crashedTask->dumpRegions();
|
||||
|
||||
s_tasks->remove(crashedTask);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue