diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-05-05 21:26:48 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-05-05 21:26:48 +0000 |
commit | ca8a4ccfe938b07fa473a582784074e5f93813cd (patch) | |
tree | e9075d1e6c63ae7e0fd9c950fcdebcfb637b3405 /sys/arch/powerpc | |
parent | 368552036fe6029364e1abc2351955db681286fc (diff) |
Remove the (vaddr_t) casts inside the round_page and trunc_page macros.
We might want to use them on types that are bigger than vaddr_t.
Fix all callers that pass pointers without casts.
Diffstat (limited to 'sys/arch/powerpc')
-rw-r--r-- | sys/arch/powerpc/powerpc/pmap.c | 6 | ||||
-rw-r--r-- | sys/arch/powerpc/powerpc/vm_machdep.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/powerpc/powerpc/pmap.c b/sys/arch/powerpc/powerpc/pmap.c index c2cf84bc7c3..b5cb6103a66 100644 --- a/sys/arch/powerpc/powerpc/pmap.c +++ b/sys/arch/powerpc/powerpc/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.27 2001/04/18 06:26:12 drahn Exp $ */ +/* $OpenBSD: pmap.c,v 1.28 2001/05/05 21:26:40 art Exp $ */ /* $NetBSD: pmap.c,v 1.1 1996/09/30 16:34:52 ws Exp $ */ /* @@ -1069,7 +1069,7 @@ pmap_free_pv(pv) { struct pv_page *pvp; - pvp = (struct pv_page *)trunc_page(pv); + pvp = (struct pv_page *)trunc_page((vaddr_t)pv); switch (++pvp->pvp_pgi.pgi_nfree) { case 1: LIST_INSERT_HEAD(&pv_page_freelist, pvp, pvp_pgi.pgi_list); @@ -1143,7 +1143,7 @@ pofree(po, freepage) { struct po_page *pop; - pop = (struct po_page *)trunc_page(po); + pop = (struct po_page *)trunc_page((vaddr_t)po); switch (++pop->pop_pgi.pgi_nfree) { case NPOPPG: if (!freepage) diff --git a/sys/arch/powerpc/powerpc/vm_machdep.c b/sys/arch/powerpc/powerpc/vm_machdep.c index 6fb4ed7058f..1e2d82d5d2e 100644 --- a/sys/arch/powerpc/powerpc/vm_machdep.c +++ b/sys/arch/powerpc/powerpc/vm_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vm_machdep.c,v 1.14 2001/04/03 20:27:26 art Exp $ */ +/* $OpenBSD: vm_machdep.c,v 1.15 2001/05/05 21:26:40 art Exp $ */ /* $NetBSD: vm_machdep.c,v 1.1 1996/09/30 16:34:57 ws Exp $ */ /* @@ -237,7 +237,7 @@ vmapbuf(bp, len) if (!(bp->b_flags & B_PHYS)) panic("vmapbuf"); #endif - faddr = trunc_page(bp->b_saveaddr = bp->b_data); + faddr = trunc_page((vaddr_t)(bp->b_saveaddr = bp->b_data)); off = (vm_offset_t)bp->b_data - faddr; len = round_page(off + len); #ifdef UVM @@ -269,7 +269,7 @@ vunmapbuf(bp, len) if (!(bp->b_flags & B_PHYS)) panic("vunmapbuf"); #endif - addr = trunc_page(bp->b_data); + addr = trunc_page((vaddr_t)bp->b_data); off = (vm_offset_t)bp->b_data - addr; len = round_page(off + len); #ifdef UVM |