mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-27 15:04:33 +00:00
Clear CR2 if the page fault is handled
This commit is contained in:
parent
bd24471748
commit
70cbbea3c0
@ -164,6 +164,7 @@ nsa bool UserModeExceptionHandler(CPU::ExceptionFrame *Frame)
|
||||
if (Handled)
|
||||
{
|
||||
debug("Page fault handled");
|
||||
Frame->cr2 = 0;
|
||||
thread->SetState(Tasking::Ready);
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user