summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/i386/i386/vm_machdep.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/i386/i386/vm_machdep.c b/sys/i386/i386/vm_machdep.c
index dca0f15..4452acf 100644
--- a/sys/i386/i386/vm_machdep.c
+++ b/sys/i386/i386/vm_machdep.c
@@ -441,6 +441,7 @@ cpu_set_upcall_kse(struct thread *td, struct kse_upcall *ku)
* Set the trap frame to point at the beginning of the uts
* function.
*/
+ td->td_frame->tf_ebp = 0;
td->td_frame->tf_esp =
(int)ku->ku_stack.ss_sp + ku->ku_stack.ss_size - 16;
td->td_frame->tf_eip = (int)ku->ku_func;
OpenPOWER on IntegriCloud