Source-Changes-HG archive

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

[src/netbsd-1-6]: src/sys/kern Pull up revision 1.23 (requested by chuq in ti...



details:   https://anonhg.NetBSD.org/src/rev/e9d20c6dbbca
branches:  netbsd-1-6
changeset: 529055:e9d20c6dbbca
user:      lukem <lukem%NetBSD.org@localhost>
date:      Sun Sep 01 13:56:58 2002 +0000

description:
Pull up revision 1.23 (requested by chuq in ticket #745):
only create a vmcmd for the BSS if there is any BSS.  fixes PR 17834.

diffstat:

 sys/kern/exec_aout.c |  11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diffs (32 lines):

diff -r 8d5eed8c0150 -r e9d20c6dbbca sys/kern/exec_aout.c
--- a/sys/kern/exec_aout.c      Wed Aug 28 22:04:53 2002 +0000
+++ b/sys/kern/exec_aout.c      Sun Sep 01 13:56:58 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: exec_aout.c,v 1.22 2001/11/12 15:25:01 lukem Exp $     */
+/*     $NetBSD: exec_aout.c,v 1.22.10.1 2002/09/01 13:56:58 lukem Exp $        */
 
 /*
  * Copyright (c) 1993, 1994 Christopher G. Demetriou
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: exec_aout.c,v 1.22 2001/11/12 15:25:01 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: exec_aout.c,v 1.22.10.1 2002/09/01 13:56:58 lukem Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -138,9 +138,10 @@
            VM_PROT_READ|VM_PROT_WRITE|VM_PROT_EXECUTE);
 
        /* set up command for bss segment */
-       NEW_VMCMD(&epp->ep_vmcmds, vmcmd_map_zero, execp->a_bss,
-           epp->ep_daddr + execp->a_data, NULLVP, 0,
-           VM_PROT_READ|VM_PROT_WRITE|VM_PROT_EXECUTE);
+       if (execp->a_bss > 0)
+               NEW_VMCMD(&epp->ep_vmcmds, vmcmd_map_zero, execp->a_bss,
+                   epp->ep_daddr + execp->a_data, NULLVP, 0,
+                   VM_PROT_READ|VM_PROT_WRITE|VM_PROT_EXECUTE);
 
        return exec_aout_setup_stack(p, epp);
 }



Home | Main Index | Thread Index | Old Index