Refactor frame to add spacing and exception for indentation to follow pintos styling

This commit is contained in:
sBubshait
2024-12-06 18:27:50 +00:00
parent d039b59b7c
commit 5fbabdcec9
2 changed files with 8 additions and 5 deletions

View File

@@ -181,11 +181,11 @@ page_fault (struct intr_frame *f)
/* If the page fault occurred in kernel mode, then we intentionally indicate
a fault (for get_user() etc). */
if (!user)
{
f->eip = (void *)f->eax;
f->eax = 0xffffffff;
return;
}
{
f->eip = (void *)f->eax;
f->eax = 0xffffffff;
return;
}
/* To implement virtual memory, delete the rest of the function