From 8f3e8e7f06cb786b2e2c174cb90eee7947012067 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 5 May 2021 20:59:15 +0200 Subject: Debugging improvements STILL NOT FOUND (see previous descr) --- kernel/features/load.c | 1 + 1 file changed, 1 insertion(+) (limited to 'kernel/features') diff --git a/kernel/features/load.c b/kernel/features/load.c index cbe32ed..d6e387e 100644 --- a/kernel/features/load.c +++ b/kernel/features/load.c @@ -167,6 +167,7 @@ res elf_load(const char *name, struct proc *proc) proc->stack.user = user_stack + PROC_STACK_SIZE; proc->stack.kernel = kernel_stack + PROC_STACK_SIZE; + proc->regs.esp = proc->stack.kernel; proc->regs.ebp = proc->stack.user; proc->regs.useresp = proc->stack.user; proc->regs.eip = header.entry + rand_off; -- cgit v1.2.3