mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-03 03:19:18 +00:00
scheduler: Fix page table switch for scheduler
The userspace process may map pages where the kernel has allocated data and cause a crash. This patch fixes this issue by having a separate IRQ handler which sets the kernel page table at the start of SchedulerInterruptHandler() and restores it in SchedulerHandlerStub() function.
This commit is contained in:
@ -78,6 +78,7 @@ namespace Interrupts
|
||||
|
||||
public:
|
||||
virtual void OnInterruptReceived(CPU::TrapFrame *Frame);
|
||||
virtual void OnInterruptReceived(CPU::SchedulerFrame *Frame);
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user