Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/i386 msgbuf doesn't need VM_PROT_EXEC, biostra...
details: https://anonhg.NetBSD.org/src/rev/a41194cda3e7
branches: trunk
changeset: 473222:a41194cda3e7
user: thorpej <thorpej%NetBSD.org@localhost>
date: Tue May 25 23:19:00 1999 +0000
description:
msgbuf doesn't need VM_PROT_EXEC, biostramp does.
diffstat:
sys/arch/i386/i386/machdep.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r c1c91c955ba6 -r a41194cda3e7 sys/arch/i386/i386/machdep.c
--- a/sys/arch/i386/i386/machdep.c Tue May 25 23:14:03 1999 +0000
+++ b/sys/arch/i386/i386/machdep.c Tue May 25 23:19:00 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.355 1999/05/25 23:14:05 thorpej Exp $ */
+/* $NetBSD: machdep.c,v 1.356 1999/05/25 23:19:00 thorpej Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -380,7 +380,7 @@
#if defined(PMAP_NEW)
for (x = 0; x < btoc(MSGBUFSIZE); x++)
pmap_kenter_pa((vaddr_t)msgbuf_vaddr + x * NBPG,
- msgbuf_paddr + x * NBPG, VM_PROT_ALL);
+ msgbuf_paddr + x * NBPG, VM_PROT_READ|VM_PROT_WRITE);
#else
for (x = 0; x < btoc(MSGBUFSIZE); x++)
pmap_enter(pmap_kernel(), (vaddr_t)msgbuf_vaddr + x * NBPG,
@@ -490,7 +490,7 @@
pmap_enter(pmap_kernel(),
(vaddr_t)BIOSTRAMP_BASE, /* virtual */
(paddr_t)BIOSTRAMP_BASE, /* physical */
- VM_PROT_READ|VM_PROT_WRITE, /* protection */
+ VM_PROT_ALL, /* protection */
TRUE, /* wired down */
VM_PROT_READ|VM_PROT_WRITE);
#endif
Home |
Main Index |
Thread Index |
Old Index