diff options
author | Martin Reindl <martin@cvs.openbsd.org> | 2008-08-30 20:45:32 +0000 |
---|---|---|
committer | Martin Reindl <martin@cvs.openbsd.org> | 2008-08-30 20:45:32 +0000 |
commit | 59ad86f4cf3e5a40d37a8e9578713154750e9978 (patch) | |
tree | a65aa5eca4d3f7fa057d22f3323107e7e6b9d69a /sys/arch/vax/vsa | |
parent | bd34341b66afeb6bf8ade73efde2bbfb319bfe25 (diff) |
replace TRUNC_PAGE by trunc_page and ROUND_PAGE by round_page
plus cast to vaddr_t where necassary
from Miod's todo list
ok miod@
Diffstat (limited to 'sys/arch/vax/vsa')
-rw-r--r-- | sys/arch/vax/vsa/vsbus.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/vax/vsa/vsbus.c b/sys/arch/vax/vsa/vsbus.c index 0c6069ddd80..77c1e9c1e59 100644 --- a/sys/arch/vax/vsa/vsbus.c +++ b/sys/arch/vax/vsa/vsbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vsbus.c,v 1.19 2008/08/15 22:40:07 miod Exp $ */ +/* $OpenBSD: vsbus.c,v 1.20 2008/08/30 20:45:31 martin Exp $ */ /* $NetBSD: vsbus.c,v 1.29 2000/06/29 07:14:37 mrg Exp $ */ /* * Copyright (c) 1996, 1999 Ludd, University of Lule}, Sweden. @@ -331,9 +331,9 @@ vsbus_copytoproc(struct proc *p, caddr_t from, caddr_t to, int len) bcopy(from, to, len); return; } - pte = uvtopte(TRUNC_PAGE(to), (&p->p_addr->u_pcb)); + pte = uvtopte(trunc_page((vaddr_t)to), (&p->p_addr->u_pcb)); if ((vaddr_t)to & PGOFSET) { - int cz = ROUND_PAGE(to) - (vaddr_t)to; + int cz = round_page((vaddr_t)to) - (vaddr_t)to; pa = ((*pte & PG_FRAME) << VAX_PGSHIFT) | (NBPG - cz) | KERNBASE; @@ -363,9 +363,9 @@ vsbus_copyfromproc(struct proc *p, caddr_t from, caddr_t to, int len) bcopy(from, to, len); return; } - pte = uvtopte(TRUNC_PAGE(from), (&p->p_addr->u_pcb)); + pte = uvtopte(trunc_page((vaddr_t)from), (&p->p_addr->u_pcb)); if ((vaddr_t)from & PGOFSET) { - int cz = ROUND_PAGE(from) - (vaddr_t)from; + int cz = round_page((vaddr_t)from) - (vaddr_t)from; pa = ((*pte & PG_FRAME) << VAX_PGSHIFT) | (NBPG - cz) | KERNBASE; |