diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2015-03-31 04:35:51 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2015-03-31 04:35:51 +0000 |
commit | 5656753b5695cfdcf6cd7884914f61cea903e212 (patch) | |
tree | ed91d08d411e268adbe1d25b3efdea633d0a309b /sys/arch | |
parent | 086157d1e3625c713abad9d6345358ede7b96218 (diff) |
zero the frame pointer of the kernel stack of new threads to make ddb trace
happier
ok dlg@ jsing@ kettenis@ mlarkin@
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/i386/i386/vm_machdep.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/i386/i386/vm_machdep.c b/sys/arch/i386/i386/vm_machdep.c index 7fe6d681ae7..5dd07849c52 100644 --- a/sys/arch/i386/i386/vm_machdep.c +++ b/sys/arch/i386/i386/vm_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vm_machdep.c,v 1.61 2014/11/16 12:30:57 deraadt Exp $ */ +/* $OpenBSD: vm_machdep.c,v 1.62 2015/03/31 04:35:50 guenther Exp $ */ /* $NetBSD: vm_machdep.c,v 1.61 1996/05/03 19:42:35 christos Exp $ */ /*- @@ -120,6 +120,7 @@ cpu_fork(struct proc *p1, struct proc *p2, void *stack, size_t stacksize, sf->sf_ebx = (int)arg; sf->sf_eip = (int)proc_trampoline; pcb->pcb_esp = (int)sf; + pcb->pcb_ebp = 0; } /* |