summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2007-03-21 19:32:30 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2007-03-21 19:32:30 +0000
commit7018c85f8793aaac7aea0c4fdbcf578c9889d37b (patch)
treea3269c7772fbc42cfb1d57c8529986d7a43b149a /sys
parent98277790f8a3b2055b23dc244561b63c419c6210 (diff)
Map the kernel text read only. Because we can.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/m88k/m88k/pmap.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/arch/m88k/m88k/pmap.c b/sys/arch/m88k/m88k/pmap.c
index 9b3db4eb826..d30dc25c789 100644
--- a/sys/arch/m88k/m88k/pmap.c
+++ b/sys/arch/m88k/m88k/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.29 2007/02/11 12:49:37 miod Exp $ */
+/* $OpenBSD: pmap.c,v 1.30 2007/03/21 19:32:29 miod Exp $ */
/*
* Copyright (c) 2001-2004, Miodrag Vallat
* Copyright (c) 1998-2001 Steve Murphree, Jr.
@@ -657,9 +657,7 @@ pmap_bootstrap(vaddr_t load_start)
vaddr = pmap_map(0, 0, s_text, VM_PROT_WRITE | VM_PROT_READ, CACHE_INH);
/* map the kernel text read only */
- vaddr = pmap_map(s_text, s_text, e_text,
- VM_PROT_WRITE | VM_PROT_READ, /* shouldn't it be RO? XXX*/
- 0);
+ vaddr = pmap_map(s_text, s_text, e_text, VM_PROT_READ, 0);
vaddr = pmap_map(vaddr, e_text, (paddr_t)kmap,
VM_PROT_WRITE | VM_PROT_READ, 0);