diff options
author | dzwdz | 2021-07-21 21:10:21 +0200 |
---|---|---|
committer | dzwdz | 2021-07-21 21:10:21 +0200 |
commit | 46fb83d6eb44b5d52520783570dc40b7ef25260b (patch) | |
tree | 9b1837fa1ca51cb09fe51e0eddf0417e73e03404 /src/kernel | |
parent | 2fd00afbc8dd4658e28534b4f957fc0d861e5bb0 (diff) |
fix init stack alignment
Diffstat (limited to 'src/kernel')
-rw-r--r-- | src/kernel/proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/proc.c b/src/kernel/proc.c index 6b80254..a3adf41 100644 --- a/src/kernel/proc.c +++ b/src/kernel/proc.c @@ -11,7 +11,7 @@ struct process *process_new() { // map the stack to the last page in memory pagedir_map(proc->pages, (void*)~PAGE_MASK, page_alloc(1), true, true); - proc->stack_top = proc->esp = (void*) ~0; + proc->stack_top = proc->esp = (void*) ~0xF; // map the kernel // yup, .text is writeable too. the plan is to not map the kernel |