Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/powerpc Fix an uninitialized variable refer...



details:   https://anonhg.NetBSD.org/src/rev/661ab947afa5
branches:  trunk
changeset: 507772:661ab947afa5
user:      tsubai <tsubai%NetBSD.org@localhost>
date:      Sat Mar 31 07:50:59 2001 +0000

description:
Fix an uninitialized variable reference in cpu_fork().
Reported by Tad Hunt <tad%entrisphere.com@localhost>.

diffstat:

 sys/arch/powerpc/powerpc/vm_machdep.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 34d68efdda94 -r 661ab947afa5 sys/arch/powerpc/powerpc/vm_machdep.c
--- a/sys/arch/powerpc/powerpc/vm_machdep.c     Sat Mar 31 06:56:54 2001 +0000
+++ b/sys/arch/powerpc/powerpc/vm_machdep.c     Sat Mar 31 07:50:59 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vm_machdep.c,v 1.24 2001/03/22 04:11:46 tsubai Exp $   */
+/*     $NetBSD: vm_machdep.c,v 1.25 2001/03/31 07:50:59 tsubai Exp $   */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -118,8 +118,10 @@
        /*
         * If specified, give the child a different stack.
         */
-       if (stack != NULL)
+       if (stack != NULL) {
+               tf = trapframe(p2);
                tf->fixreg[1] = (register_t)stack + stacksize;
+       }
 
        stktop2 = (caddr_t)((u_long)stktop2 & ~15);     /* Align stack pointer */
 



Home | Main Index | Thread Index | Old Index