Skip to content

Commit

Permalink
Merge pull request #33 from hangpark/iss/30
Browse files Browse the repository at this point in the history
[#30] Setting up esp value as PHYS_BASE - 12
  • Loading branch information
hangpark authored Apr 2, 2017
2 parents 66ace68 + ee05078 commit 1c9b6d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/userprog/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ setup_stack (void **esp)
{
success = install_page (((uint8_t *) PHYS_BASE) - PGSIZE, kpage, true);
if (success)
*esp = PHYS_BASE;
*esp = PHYS_BASE - 12; // Temporary measure
else
palloc_free_page (kpage);
}
Expand Down

0 comments on commit 1c9b6d7

Please sign in to comment.