summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2004-09-18 06:43:24 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2004-09-18 06:43:24 +0000
commit90883c83e1b71d5b0fba527f5f484e8e7e84cc1b (patch)
tree30f892a62a2f01b8568a57210cb9f934027502ba /sys/arch
parent2b867c195fd9606b1399c69f331ccb26175f5ab1 (diff)
map rodata rdonly in case it gets pushed out of the text batc
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/hppa/hppa/pmap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/hppa/hppa/pmap.c b/sys/arch/hppa/hppa/pmap.c
index b68ee15a0e6..5f49271e576 100644
--- a/sys/arch/hppa/hppa/pmap.c
+++ b/sys/arch/hppa/hppa/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.119 2004/09/15 01:00:41 mickey Exp $ */
+/* $OpenBSD: pmap.c,v 1.120 2004/09/18 06:43:23 mickey Exp $ */
/*
* Copyright (c) 1998-2004 Michael Shalayeff
@@ -569,6 +569,8 @@ pmap_bootstrap(vstart)
if (va < (vaddr_t)&etext)
prot = UVM_PROT_RX;
+ else if (va < (vaddr_t)&__rodata_end)
+ prot = UVM_PROT_READ;
else if (va == (vaddr_t)proc0paddr + USPACE)
prot = UVM_PROT_NONE;