summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2011-09-01 03:00:26 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2011-09-01 03:00:26 +0200
commit47a835d22b1a608fac5ee241474f128f64cb6a0f (patch)
tree42cde49d88e5784461dfeb4cb40e6bf39fae32ef
parenta1d66c30fc146b7a4eb013fbe6aacc1e5153d843 (diff)
Close kernel stacks.
* i386/i386/pcb.c (stack_attach): Initialize ebp to 0.
-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 f687db14..7f2b3c88 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.