summaryrefslogtreecommitdiffstats
path: root/src/userprog/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/userprog/process.c')
-rw-r--r--src/userprog/process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/userprog/process.c b/src/userprog/process.c
index b3e16bb..45aaaa4 100644
--- a/src/userprog/process.c
+++ b/src/userprog/process.c
@@ -88,7 +88,7 @@ start_process (void *file_name_)
int
process_wait (tid_t child_tid UNUSED)
{
- return -1;
+ for (;;) {}
}
/* Free the current process's resources. */
@@ -476,7 +476,7 @@ setup_stack (void **esp)
{
success = install_page (((uint8_t *) PHYS_BASE) - PGSIZE, kpage, true);
if (success)
- *esp = PHYS_BASE;
+ *esp = PHYS_BASE - 12;
else
palloc_free_page (kpage);
}