diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2003-05-09 23:10:22 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2003-05-09 23:10:22 +0000 |
commit | 27980039fe4ab0df810445f260b17a1ca477c16d (patch) | |
tree | 1529d2549dde0a303807422cb8c75335e67c4dda /sys/arch | |
parent | 60fd59680454e411ffce2ad46a2bb1002513b9f1 (diff) |
No need to map the message buffer executable.
fries@ niklas@ ok
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/hp300/hp300/machdep.c | 5 | ||||
-rw-r--r-- | sys/arch/mac68k/mac68k/machdep.c | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/sys/arch/hp300/hp300/machdep.c b/sys/arch/hp300/hp300/machdep.c index 45b658b01df..d3b54432d9b 100644 --- a/sys/arch/hp300/hp300/machdep.c +++ b/sys/arch/hp300/hp300/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.85 2003/04/06 18:54:18 ho Exp $ */ +/* $OpenBSD: machdep.c,v 1.86 2003/05/09 23:10:21 art Exp $ */ /* $NetBSD: machdep.c,v 1.121 1999/03/26 23:41:29 mycroft Exp $ */ /* @@ -267,7 +267,8 @@ cpu_startup() */ for (i = 0; i < btoc(MSGBUFSIZE); i++) pmap_enter(pmap_kernel(), (vaddr_t)msgbufp + i * NBPG, - avail_end + i * NBPG, VM_PROT_ALL, VM_PROT_ALL|PMAP_WIRED); + avail_end + i * NBPG, VM_PROT_READ|VM_PROT_WRITE, + VM_PROT_READ|VM_PROT_WRITE|PMAP_WIRED); pmap_update(pmap_kernel()); initmsgbuf((caddr_t)msgbufp, round_page(MSGBUFSIZE)); diff --git a/sys/arch/mac68k/mac68k/machdep.c b/sys/arch/mac68k/mac68k/machdep.c index f61cb625ba4..6954f84acfd 100644 --- a/sys/arch/mac68k/mac68k/machdep.c +++ b/sys/arch/mac68k/mac68k/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.105 2003/04/06 18:54:19 ho Exp $ */ +/* $OpenBSD: machdep.c,v 1.106 2003/05/09 23:10:21 art Exp $ */ /* $NetBSD: machdep.c,v 1.207 1998/07/08 04:39:34 thorpej Exp $ */ /* @@ -352,7 +352,8 @@ cpu_startup(void) for (i = 0; i < btoc(MSGBUFSIZE); i++) pmap_enter(pmap_kernel(), (vaddr_t)msgbufp + i * NBPG, high[numranges - 1] + i * NBPG, - VM_PROT_ALL, VM_PROT_ALL|PMAP_WIRED); + VM_PROT_READ|VM_PROT_WRITE, + VM_PROT_READ|VM_PROT_WRITE|PMAP_WIRED); pmap_update(pmap_kernel()); initmsgbuf((caddr_t)msgbufp, round_page(MSGBUFSIZE)); |