Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/netbsd32 Clear the VM_TOPDOWN flag only when we s...



details:   https://anonhg.NetBSD.org/src/rev/1ce7fceff6a4
branches:  trunk
changeset: 326334:1ce7fceff6a4
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jan 25 23:58:10 2014 +0000

description:
Clear the VM_TOPDOWN flag only when we succeed.

diffstat:

 sys/compat/netbsd32/netbsd32_exec_aout.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r c3d561a0f87e -r 1ce7fceff6a4 sys/compat/netbsd32/netbsd32_exec_aout.c
--- a/sys/compat/netbsd32/netbsd32_exec_aout.c  Sat Jan 25 23:11:08 2014 +0000
+++ b/sys/compat/netbsd32/netbsd32_exec_aout.c  Sat Jan 25 23:58:10 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_exec_aout.c,v 1.26 2014/01/25 05:15:43 christos Exp $ */
+/*     $NetBSD: netbsd32_exec_aout.c,v 1.27 2014/01/25 23:58:10 christos Exp $ */
 /*     from: NetBSD: exec_aout.c,v 1.15 1996/09/26 23:34:46 cgd Exp */
 
 /*
@@ -57,7 +57,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_exec_aout.c,v 1.26 2014/01/25 05:15:43 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_exec_aout.c,v 1.27 2014/01/25 23:58:10 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -113,7 +113,6 @@
 
        /* this is already needed by setup_stack() */
        epp->ep_flags |= EXEC_32;
-       epp->ep_flags &= ~EXEC_TOPDOWN_VM;
 
        switch (midmag) {
        case (NETBSD32_MID_MACHINE << 16) | ZMAGIC:
@@ -134,7 +133,8 @@
        if (error) {
                kill_vmcmds(&epp->ep_vmcmds);
                epp->ep_flags &= ~EXEC_32;
-       }
+       } else
+               epp->ep_flags &= ~EXEC_TOPDOWN_VM;
        return error;
 }
 



Home | Main Index | Thread Index | Old Index