summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2003-04-01 23:11:56 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2003-04-01 23:11:56 +0000
commitaee070148823050109cf7d6b3c9e95c93370a406 (patch)
tree6ad2c7ff78b850e409e44ae0985bc105fe4e3b52
parentc190554358a31e512bbcde87b4b21e3e43c4b966 (diff)
use PAGE_MASK instead of PAGE_SIZE-1
-rw-r--r--sys/arch/hppa/hppa/mainbus.c4
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; ) {