From 4786ce4688f7e8a3feb561af90650aa296e1ad24 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 18 Sep 2021 22:10:41 +0200 Subject: remove `struct process.stack_top` - it was unused --- src/kernel/proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/kernel/proc.c') 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 -- cgit v1.2.3