diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-05-05 20:57:05 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-05-05 20:57:05 +0000 |
commit | 368552036fe6029364e1abc2351955db681286fc (patch) | |
tree | b3e9a57702ccbbcd0869d57d84ba28c1e1033e05 /sys/arch/vax/if | |
parent | e64b8c0b9c88452904cfa97be25cfec4e21e04ce (diff) |
Get rid of CLSIZE and all related stuff.
CLSIZE -> 1
CLBYTES -> PAGE_SIZE
OLOFSET -> PAGE_MASK
etc.
At the same time some archs needed some cleaning in vmparam.h so that
goes in at the same time.
Diffstat (limited to 'sys/arch/vax/if')
-rw-r--r-- | sys/arch/vax/if/if_uba.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/vax/if/if_uba.c b/sys/arch/vax/if/if_uba.c index 34175ed4c18..fe3d5bbaa7f 100644 --- a/sys/arch/vax/if/if_uba.c +++ b/sys/arch/vax/if/if_uba.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_uba.c,v 1.6 2000/04/27 03:14:43 bjc Exp $ */ +/* $OpenBSD: if_uba.c,v 1.7 2001/05/05 20:56:55 art Exp $ */ /* $NetBSD: if_uba.c,v 1.15 1999/01/01 21:43:18 ragge Exp $ */ /* @@ -228,7 +228,7 @@ if_ubaget(ifu, ifr, totlen, ifp) } len = min(len, MCLBYTES); m->m_len = len; - if (!claligned(cp)){ + if (((vaddr_t)cp & PAGE_MASK) != 0) { goto copy; } /* @@ -347,7 +347,8 @@ if_ubaput(ifu, ifw, m) cp = ifw->ifw_addr; while (m) { dp = mtod(m, char *); - if (claligned(cp) && claligned(dp) && + if (((vaddr_t)cp & PAGE_MASK) == 0 && + ((vaddr_t)dp & PAGE_MASK) == 0 && (m->m_len == MCLBYTES || m->m_next == (struct mbuf *)0)) { struct pte *pte; int *ip; |