Source-Changes-HG archive

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

[src/trunk]: src/sys/kern round the sizes of mapped text and data segments to...



details:   https://anonhg.NetBSD.org/src/rev/b860bf3b1b3b
branches:  trunk
changeset: 487821:b860bf3b1b3b
user:      chs <chs%NetBSD.org@localhost>
date:      Tue Jun 13 06:21:51 2000 +0000

description:
round the sizes of mapped text and data segments to PAGE_SIZE.
fixes PR 10079.

diffstat:

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

diffs (23 lines):

diff -r e7aaba37e745 -r b860bf3b1b3b sys/kern/exec_aout.c
--- a/sys/kern/exec_aout.c      Tue Jun 13 06:15:51 2000 +0000
+++ b/sys/kern/exec_aout.c      Tue Jun 13 06:21:51 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: exec_aout.c,v 1.16 2000/04/11 04:37:50 chs Exp $       */
+/*     $NetBSD: exec_aout.c,v 1.17 2000/06/13 06:21:51 chs Exp $       */
 
 /*
  * Copyright (c) 1993, 1994 Christopher G. Demetriou
@@ -129,11 +129,11 @@
        vn_marktext(epp->ep_vp);
 
        /* set up command for text segment */
-       NEW_VMCMD(&epp->ep_vmcmds, vmcmd_map_pagedvn, execp->a_text,
+       NEW_VMCMD(&epp->ep_vmcmds, vmcmd_map_pagedvn, round_page(execp->a_text),
            epp->ep_taddr, epp->ep_vp, 0, VM_PROT_READ|VM_PROT_EXECUTE);
 
        /* set up command for data segment */
-       NEW_VMCMD(&epp->ep_vmcmds, vmcmd_map_pagedvn, execp->a_data,
+       NEW_VMCMD(&epp->ep_vmcmds, vmcmd_map_pagedvn, round_page(execp->a_data),
            epp->ep_daddr, epp->ep_vp, execp->a_text,
            VM_PROT_READ|VM_PROT_WRITE|VM_PROT_EXECUTE);
 



Home | Main Index | Thread Index | Old Index