Source-Changes-HG archive

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

[src/netbsd-2]: src/sys/arch/acorn26/acorn26 Pull up following revision(s) (r...



details:   https://anonhg.NetBSD.org/src/rev/57bd80aa272c
branches:  netbsd-2
changeset: 564538:57bd80aa272c
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Sun Oct 15 13:09:02 2006 +0000

description:
Pull up following revision(s) (requested by bjh21 in ticket #10715):
        sys/arch/acorn26/acorn26/vm_machdep.c: revision 1.12
When forking a new LWP, if a new user stack pointer is provided, use it.
Necessary to make regress/lib/libc/clone pass.

diffstat:

 sys/arch/acorn26/acorn26/vm_machdep.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 0f3e3eb807df -r 57bd80aa272c sys/arch/acorn26/acorn26/vm_machdep.c
--- a/sys/arch/acorn26/acorn26/vm_machdep.c     Mon Oct 09 21:44:35 2006 +0000
+++ b/sys/arch/acorn26/acorn26/vm_machdep.c     Sun Oct 15 13:09:02 2006 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vm_machdep.c,v 1.7 2004/01/04 11:33:29 jdolecek Exp $ */
+/* $NetBSD: vm_machdep.c,v 1.7.6.1 2006/10/15 13:09:02 bouyer Exp $ */
 
 /*-
  * Copyright (c) 2000, 2001 Ben Harris
@@ -64,7 +64,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.7 2004/01/04 11:33:29 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.7.6.1 2006/10/15 13:09:02 bouyer Exp $");
 
 #include <sys/param.h>
 #include <sys/buf.h>
@@ -128,6 +128,9 @@
                bzero(tf, sizeof(*tf));
        else
                *tf = *l1->l_addr->u_pcb.pcb_tf;
+       /* If specified, give the child a different stack. */
+       if (stack != NULL)
+               tf->tf_usr_sp = (u_int)stack + stacksize;
        l2->l_addr->u_pcb.pcb_tf = tf;
        /* Fabricate a new switchframe */
        bzero(sf, sizeof(*sf));



Home | Main Index | Thread Index | Old Index