Clear the VM_TOPDOWN flag only when we succeed.
This commit is contained in:
parent
da0612c022
commit
be0eaa5707
|
@ -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 @@ exec_netbsd32_makecmds(struct lwp *l, struct exec_package *epp)
|
|||
|
||||
/* 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 @@ exec_netbsd32_makecmds(struct lwp *l, struct exec_package *epp)
|
|||
if (error) {
|
||||
kill_vmcmds(&epp->ep_vmcmds);
|
||||
epp->ep_flags &= ~EXEC_32;
|
||||
}
|
||||
} else
|
||||
epp->ep_flags &= ~EXEC_TOPDOWN_VM;
|
||||
return error;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue