mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-28 23:44:35 +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)
|
if (Handled)
|
||||||
{
|
{
|
||||||
debug("Page fault handled");
|
debug("Page fault handled");
|
||||||
|
Frame->cr2 = 0;
|
||||||
thread->SetState(Tasking::Ready);
|
thread->SetState(Tasking::Ready);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user