diff options
Diffstat (limited to 'sys/arch/arm')
-rw-r--r-- | sys/arch/arm/arm/db_interface.c | 6 |
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; |