diff options
author | 2001-05-07 01:24:55 +0000 | |
---|---|---|
committer | 2001-05-07 01:24:55 +0000 | |
commit | 34e206fd35ab10a64357a01a55e250dbbc55fba5 (patch) | |
tree | 90e586cb8cbecdd985243c83a7bb9941eae62a76 | |
parent | use atomicio for flushing stdout/stderr bufs. thanks to jbw@izanami.cee.hw.ac.uk (diff) | |
download | wireguard-openbsd-34e206fd35ab10a64357a01a55e250dbbc55fba5.tar.xz wireguard-openbsd-34e206fd35ab10a64357a01a55e250dbbc55fba5.zip |
Fix fallout from recent trunc_page() changes.
problem and fix pointed out by dhartmei,
variable name changed to make slightly easier to read.
-rw-r--r-- | sys/arch/powerpc/powerpc/machdep.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/powerpc/powerpc/machdep.c b/sys/arch/powerpc/powerpc/machdep.c index a23bca9f230..1c06ac541d3 100644 --- a/sys/arch/powerpc/powerpc/machdep.c +++ b/sys/arch/powerpc/powerpc/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.59 2001/05/05 22:34:14 art Exp $ */ +/* $OpenBSD: machdep.c,v 1.60 2001/05/07 01:24:55 drahn Exp $ */ /* $NetBSD: machdep.c,v 1.4 1996/10/16 19:33:11 ws Exp $ */ /* @@ -1277,8 +1277,8 @@ mapiodev(pa, len) return (void*) (va+off); } void -unmapiodev(va, p_size) - void *va; +unmapiodev(kva, p_size) + void *kva; psize_t p_size; { vaddr_t vaddr; @@ -1286,7 +1286,7 @@ unmapiodev(va, p_size) size = p_size; - vaddr = trunc_page(va); + vaddr = trunc_page((vaddr_t)kva); #ifdef UVM uvm_km_free_wakeup(phys_map, vaddr, size); |