diff options
author | dzwdz | 2021-09-18 22:10:41 +0200 |
---|---|---|
committer | dzwdz | 2021-09-18 22:10:41 +0200 |
commit | 4786ce4688f7e8a3feb561af90650aa296e1ad24 (patch) | |
tree | 126369c04d30551f654b95d862a1dddeaaf0e03a /src | |
parent | 3a8b66ce67ae74a66aecadd041b49867f9267231 (diff) |
remove `struct process.stack_top` - it was unused
Diffstat (limited to 'src')
-rw-r--r-- | src/kernel/proc.c | 2 | ||||
-rw-r--r-- | src/kernel/proc.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/kernel/proc.c b/src/kernel/proc.c index e82971c..9a38881 100644 --- a/src/kernel/proc.c +++ b/src/kernel/proc.c @@ -28,7 +28,7 @@ struct process *process_seed(void) { // map the stack to the last page in memory pagedir_map(proc->pages, (userptr_t)~PAGE_MASK, page_alloc(1), true, true); - proc->stack_top = proc->regs.esp = (userptr_t) ~0xF; + proc->regs.esp = (userptr_t) ~0xF; // map the kernel // yup, .text is writeable too. the plan is to not map the kernel diff --git a/src/kernel/proc.h b/src/kernel/proc.h index bd7a843..970c694 100644 --- a/src/kernel/proc.h +++ b/src/kernel/proc.h @@ -13,7 +13,6 @@ enum process_state { }; struct process { - void __user *stack_top; struct pagedir *pages; struct registers regs; enum process_state state; |