diff options
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 |