summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2004-07-20 01:38:59 +0000
committerdavidxu <davidxu@FreeBSD.org>2004-07-20 01:38:59 +0000
commit069d2d3959d5c806644fdabb6e331a7fe8bdb912 (patch)
treedefc8ee04e04673caecfaa06178501986513c234
parent07524332dc804cf32528e76071068d2a4b470f80 (diff)
downloadFreeBSD-src-069d2d3959d5c806644fdabb6e331a7fe8bdb912.zip
FreeBSD-src-069d2d3959d5c806644fdabb6e331a7fe8bdb912.tar.gz
Make end of frames for KSE thread, for system scope thread, without this
change, debugger will dump a weird stack backtrace.
-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