diff options
Diffstat (limited to 'userprog')
| -rw-r--r-- | userprog/process.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/userprog/process.c b/userprog/process.c index f5b7431..bd4f6b0 100644 --- a/userprog/process.c +++ b/userprog/process.c | |||
| @@ -622,7 +622,7 @@ setup_stack (void **esp, const char *args) | |||
| 622 | stack_total = PHYS_BASE - *esp; | 622 | stack_total = PHYS_BASE - *esp; |
| 623 | printf("stack_total=%u\n", stack_total); | 623 | printf("stack_total=%u\n", stack_total); |
| 624 | printf("unaligned=%p off=%d\n", *esp, PHYS_BASE - *esp); | 624 | printf("unaligned=%p off=%d\n", *esp, PHYS_BASE - *esp); |
| 625 | *esp -= (4 - stack_total % sizeof(char *)); /* by thomas */ | 625 | *esp -= (4 - stack_total % sizeof(char *)); /* thanks to thomas */ |
| 626 | printf("aligned=%p off=%d\n", *esp, PHYS_BASE - *esp); | 626 | printf("aligned=%p off=%d\n", *esp, PHYS_BASE - *esp); |
| 627 | 627 | ||
| 628 | /* Currently we assume that 'argc = 0' */ | 628 | /* Currently we assume that 'argc = 0' */ |
