diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2005-11-22 12:52:56 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2005-11-22 12:52:56 +0000 |
commit | 70cb7dde835fbec755d0a96806cb658689cea3c9 (patch) | |
tree | 6cc2ded7599233b414c2c3255a393bcb6d1d650c | |
parent | e26015c7b20d9dd228917319fff83a26534e1ee7 (diff) |
do not manually inline kvtopte() macro; no func change
-rw-r--r-- | sys/arch/i386/i386/db_memrw.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/i386/i386/db_memrw.c b/sys/arch/i386/i386/db_memrw.c index 8be1e95b68e..979c327178b 100644 --- a/sys/arch/i386/i386/db_memrw.c +++ b/sys/arch/i386/i386/db_memrw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_memrw.c,v 1.7 2005/11/13 14:23:26 martin Exp $ */ +/* $OpenBSD: db_memrw.c,v 1.8 2005/11/22 12:52:55 mickey Exp $ */ /* $NetBSD: db_memrw.c,v 1.6 1999/04/12 20:38:19 pk Exp $ */ /* @@ -74,14 +74,14 @@ db_write_bytes(vaddr_t addr, size_t size, char *data) if (addr >= VM_MIN_KERNEL_ADDRESS && addr < (vaddr_t)&etext) { - ptep0 = PTE_BASE + atop(addr); + ptep0 = kvtopte(addr); oldmap0 = *ptep0; *(int *)ptep0 |= /* INTEL_PTE_WRITE */ PG_RW; addr1 = trunc_page(addr + size - 1); if (trunc_page(addr) != addr1) { /* data crosses a page boundary */ - ptep1 = PTE_BASE + atop(addr1); + ptep1 = kvtopte(addr1); oldmap1 = *ptep1; *(int *)ptep1 |= /* INTEL_PTE_WRITE */ PG_RW; } |