aboutsummaryrefslogtreecommitdiff
path: root/kernel/features
diff options
context:
space:
mode:
authorMarvin Borner2021-05-05 20:59:15 +0200
committerMarvin Borner2021-05-05 20:59:15 +0200
commit8f3e8e7f06cb786b2e2c174cb90eee7947012067 (patch)
tree12361730899d62937b71829770dc2c32649bef30 /kernel/features
parent51016670a24092b6b9ecd0f50d1aaa976e780cc1 (diff)
Debugging improvements
STILL NOT FOUND (see previous descr)
Diffstat (limited to 'kernel/features')
-rw-r--r--kernel/features/load.c1
1 files changed, 1 insertions, 0 deletions
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;