diff options
Diffstat (limited to 'sys/arch/vax/if/if_uba.c')
-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; |