fix: grow stack upon page fault in kernel context to support syscall stack growth

This commit is contained in:
EDiasAlberto
2024-12-03 20:56:10 +00:00
parent 08eafcf7ef
commit 9a3c8a1c38

View File

@@ -178,6 +178,9 @@ page_fault (struct intr_frame *f)
}
else
{
/* Allows for stack growth in kernel context, due to syscall failure */
if (handle_stack_fault (fault_addr, thread_current ()->curr_esp)) return;
f->eip = (void *)f->eax;
f->eax = 0xffffffff;
return;