summaryrefslogtreecommitdiff
path: root/i386
diff options
context:
space:
mode:
Diffstat (limited to 'i386')
-rw-r--r--i386/i386/pcb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/i386/i386/pcb.c b/i386/i386/pcb.c
index f687db1..7f2b3c8 100644
--- a/i386/i386/pcb.c
+++ b/i386/i386/pcb.c
@@ -96,6 +96,7 @@ void stack_attach(thread, stack, continuation)
STACK_IKS(stack)->k_eip = (int) Thread_continue;
STACK_IKS(stack)->k_ebx = (int) continuation;
STACK_IKS(stack)->k_esp = (int) STACK_IEL(stack);
+ STACK_IKS(stack)->k_ebp = (int) 0;
/*
* Point top of kernel stack to user`s registers.