summaryrefslogtreecommitdiff
path: root/sys/arch/arm
diff options
context:
space:
mode:
authorPatrick Wildt <patrick@cvs.openbsd.org>2013-04-30 11:50:48 +0000
committerPatrick Wildt <patrick@cvs.openbsd.org>2013-04-30 11:50:48 +0000
commit32ecf4fb4c8a2d653b10b9bfe7b41da7ae27ea02 (patch)
treee4179f5bfa58727fe277cf3caa87f61844245755 /sys/arch/arm
parent2a41efef1807c0b1fe84371807de445b0fffa39f (diff)
Replace the statically defined protection bits with a macro, which will
be useful for the upcoming ARMv7 changes. ok bmercer@
Diffstat (limited to 'sys/arch/arm')
-rw-r--r--sys/arch/arm/arm/db_interface.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/arm/arm/db_interface.c b/sys/arch/arm/arm/db_interface.c
index cdc4ecfd353..00030940417 100644
--- a/sys/arch/arm/arm/db_interface.c
+++ b/sys/arch/arm/arm/db_interface.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_interface.c,v 1.6 2009/05/08 02:57:32 drahn Exp $ */
+/* $OpenBSD: db_interface.c,v 1.7 2013/04/30 11:50:47 patrick Exp $ */
/* $NetBSD: db_interface.c,v 1.34 2003/10/26 23:11:15 chris Exp $ */
/*
@@ -245,7 +245,7 @@ db_write_text(vaddr_t addr, size_t size, char *data)
pgva = (vaddr_t)dst & L1_S_FRAME;
limit = L1_S_SIZE - ((vaddr_t)dst & L1_S_OFFSET);
- tmppde = oldpde | L1_S_PROT_W;
+ tmppde = oldpde | L1_S_PROT(PTE_KERNEL, VM_PROT_WRITE);
*pde = tmppde;
PTE_SYNC(pde);
break;
@@ -257,7 +257,7 @@ db_write_text(vaddr_t addr, size_t size, char *data)
if (pte == NULL)
goto no_mapping;
oldpte = *pte;
- tmppte = oldpte | L2_S_PROT_W;
+ tmppte = oldpte | L2_S_PROT(PTE_KERNEL, VM_PROT_WRITE);
*pte = tmppte;
PTE_SYNC(pte);
break;