1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:47:34 +00:00

Process now maps regions immediately when they are allocated.

This avoids having to do a separate MM.mapRegionsForTask() pass.

Also, more Task => Process renaming that I apparently hadn't saved yet.
This commit is contained in:
Andreas Kling 2018-11-01 13:15:46 +01:00
parent 4e60551aec
commit 3e532ac7b6
14 changed files with 327 additions and 387 deletions

View file

@ -3,7 +3,7 @@
#include "VGA.h"
#include "i386.h"
#include "Assertions.h"
#include "Task.h"
#include "Process.h"
#include "MemoryManager.h"
#include "IRQHandler.h"
#include "PIC.h"
@ -153,8 +153,7 @@ void exception_6_handler()
}
HANG;
// NOTE: This will schedule a new task.
Task::taskDidCrash(current);
Process::processDidCrash(current);
}
// 13: General Protection Fault
@ -184,8 +183,7 @@ void exception_13_handler()
HANG;
}
// NOTE: This will schedule a new task.
Task::taskDidCrash(current);
Process::processDidCrash(current);
}
// 14: Page Fault
@ -239,8 +237,7 @@ void exception_14_handler()
if (response == PageFaultResponse::ShouldCrash) {
kprintf("Crashing after unresolved page fault\n");
// NOTE: This will schedule a new task.
Task::taskDidCrash(current);
Process::processDidCrash(current);
} else if (response == PageFaultResponse::Continue) {
kprintf("Continuing after resolved page fault\n");
} else {