Clear CR2 if the page fault is handled

This commit is contained in:
EnderIce2
2024-03-21 02:08:18 +02:00
parent bd24471748
commit 70cbbea3c0

View File

@ -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;
}