From ec0fa1f388351f421a752099466152948949b37a Mon Sep 17 00:00:00 2001 From: mycroft Date: Sat, 8 Jan 1994 16:06:04 +0000 Subject: [PATCH] Use NULLVP, just for Correctness (tm). --- sys/arch/hp300/hp300/machdep.c | 4 ++-- sys/arch/i386/i386/machdep.c | 2 +- sys/kern/exec_aout.c | 12 ++++++------ 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/sys/arch/hp300/hp300/machdep.c b/sys/arch/hp300/hp300/machdep.c index f5a1aa373c20..68ad9fa55560 100644 --- a/sys/arch/hp300/hp300/machdep.c +++ b/sys/arch/hp300/hp300/machdep.c @@ -37,7 +37,7 @@ * * from: Utah Hdr: machdep.c 1.63 91/04/24 * from: @(#)machdep.c 7.16 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.22 1994/01/08 12:25:25 cgd Exp $ + * $Id: machdep.c,v 1.23 1994/01/08 16:07:42 mycroft Exp $ */ #include "param.h" @@ -1553,7 +1553,7 @@ cpu_exec_aout_prep_oldzmagic(p, epp) /* set up command for bss segment */ NEW_VMCMD(&epp->ep_vmcmds, vmcmd_map_zero, execp->a_bss, - epp->ep_daddr + execp->a_data, 0, 0, + epp->ep_daddr + execp->a_data, NULLVP, 0, VM_PROT_READ|VM_PROT_WRITE|VM_PROT_EXECUTE); return exec_aout_setup_stack(p, epp); diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c index 7a10fe124776..a2a7682cfdeb 100644 --- a/sys/arch/i386/i386/machdep.c +++ b/sys/arch/i386/i386/machdep.c @@ -1209,7 +1209,7 @@ cpu_exec_aout_prep_oldzmagic(p, epp) /* set up command for bss segment */ NEW_VMCMD(&epp->ep_vmcmds, vmcmd_map_zero, execp->a_bss, - epp->ep_daddr + execp->a_data, 0, 0, + epp->ep_daddr + execp->a_data, NULLVP, 0, VM_PROT_READ|VM_PROT_WRITE|VM_PROT_EXECUTE); return exec_aout_setup_stack(p, epp); diff --git a/sys/kern/exec_aout.c b/sys/kern/exec_aout.c index 268d243e2162..0ee145d8c3bc 100644 --- a/sys/kern/exec_aout.c +++ b/sys/kern/exec_aout.c @@ -27,7 +27,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: exec_aout.c,v 1.4 1994/01/08 15:24:02 mycroft Exp $ + * $Id: exec_aout.c,v 1.5 1994/01/08 16:06:04 mycroft Exp $ */ #include @@ -148,7 +148,7 @@ exec_aout_prep_zmagic(p, epp) /* set up command for bss segment */ NEW_VMCMD(&epp->ep_vmcmds, vmcmd_map_zero, execp->a_bss, - epp->ep_daddr + execp->a_data, 0, 0, + epp->ep_daddr + execp->a_data, NULLVP, 0, VM_PROT_READ|VM_PROT_WRITE|VM_PROT_EXECUTE); return exec_aout_setup_stack(p, epp); @@ -187,7 +187,7 @@ exec_aout_prep_nmagic(p, epp) bsize = epp->ep_daddr + epp->ep_dsize - baddr; if (bsize > 0) NEW_VMCMD(&epp->ep_vmcmds, vmcmd_map_zero, bsize, baddr, - 0, 0, VM_PROT_READ|VM_PROT_WRITE|VM_PROT_EXECUTE); + NULLVP, 0, VM_PROT_READ|VM_PROT_WRITE|VM_PROT_EXECUTE); return exec_aout_setup_stack(p, epp); } @@ -220,7 +220,7 @@ exec_aout_prep_omagic(p, epp) bsize = epp->ep_daddr + epp->ep_dsize - baddr; if (bsize > 0) NEW_VMCMD(&epp->ep_vmcmds, vmcmd_map_zero, bsize, baddr, - 0, 0, VM_PROT_READ|VM_PROT_WRITE|VM_PROT_EXECUTE); + NULLVP, 0, VM_PROT_READ|VM_PROT_WRITE|VM_PROT_EXECUTE); return exec_aout_setup_stack(p, epp); } @@ -261,9 +261,9 @@ exec_aout_setup_stack(p, epp) */ NEW_VMCMD(&epp->ep_vmcmds, vmcmd_map_zero, ((epp->ep_minsaddr - epp->ep_ssize) - epp->ep_maxsaddr), - epp->ep_maxsaddr, 0, 0, VM_PROT_NONE); + epp->ep_maxsaddr, NULLVP, 0, VM_PROT_NONE); NEW_VMCMD(&epp->ep_vmcmds, vmcmd_map_zero, epp->ep_ssize, - (epp->ep_minsaddr - epp->ep_ssize), 0, 0, + (epp->ep_minsaddr - epp->ep_ssize), NULLVP, 0, VM_PROT_READ|VM_PROT_WRITE|VM_PROT_EXECUTE); return 0;