Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/i386/i386 Clear %ebp in the forked child, so we don...



details:   https://anonhg.NetBSD.org/src/rev/487be8e59699
branches:  trunk
changeset: 486731:487be8e59699
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Sat May 27 23:01:44 2000 +0000

description:
Clear %ebp in the forked child, so we don't try to unwind past it.

diffstat:

 sys/arch/i386/i386/vm_machdep.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 96f91d27597b -r 487be8e59699 sys/arch/i386/i386/vm_machdep.c
--- a/sys/arch/i386/i386/vm_machdep.c   Sat May 27 22:49:45 2000 +0000
+++ b/sys/arch/i386/i386/vm_machdep.c   Sat May 27 23:01:44 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vm_machdep.c,v 1.87 2000/03/26 20:42:28 kleink Exp $   */
+/*     $NetBSD: vm_machdep.c,v 1.88 2000/05/27 23:01:44 mycroft Exp $  */
 
 /*-
  * Copyright (c) 1995 Charles M. Hannum.  All rights reserved.
@@ -167,6 +167,7 @@
        sf->sf_ebx = (int)p2;
        sf->sf_eip = (int)proc_trampoline;
        pcb->pcb_esp = (int)sf;
+       pcb->pcb_ebp = 0;
 }
 
 void



Home | Main Index | Thread Index | Old Index