refactor: page fault exception handler follows code style
This commit is contained in:
@@ -155,6 +155,7 @@ page_fault (struct intr_frame *f)
|
|||||||
{
|
{
|
||||||
if (try_alloc_new_page (fault_addr, thread_current ()->curr_esp))
|
if (try_alloc_new_page (fault_addr, thread_current ()->curr_esp))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
f->eip = (void *)f->eax;
|
f->eip = (void *)f->eax;
|
||||||
f->eax = 0xffffffff;
|
f->eax = 0xffffffff;
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user