diff options
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r-- | sys/arch/hppa/hppa/mainbus.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/hppa/hppa/mainbus.c b/sys/arch/hppa/hppa/mainbus.c index 71b876855ee..2977b7a16c0 100644 --- a/sys/arch/hppa/hppa/mainbus.c +++ b/sys/arch/hppa/hppa/mainbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mainbus.c,v 1.41 2003/02/18 19:01:50 deraadt Exp $ */ +/* $OpenBSD: mainbus.c,v 1.42 2003/04/01 23:11:55 mickey Exp $ */ /* * Copyright (c) 1998-2003 Michael Shalayeff @@ -654,7 +654,7 @@ mbus_dmamap_load(void *v, bus_dmamap_t map, void *addr, bus_size_t size, pa_next = 0; seg = -1; mapsize = size; - off = (bus_size_t)addr & (PAGE_SIZE - 1); + off = (bus_size_t)addr & PAGE_MASK; addr = (void *) ((caddr_t)addr - off); for(; size > 0; ) { |