summaryrefslogtreecommitdiff
path: root/sys/arch/sgi
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2010-04-04 11:24:31 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2010-04-04 11:24:31 +0000
commit803c01a401b2c48ee9649632aa98b5873d6cea6f (patch)
treecaa17d1107abbc8e9140b04d0afc06360fc392ab /sys/arch/sgi
parent9b55dd9def09fe7a78967a6a68ed4bb3b393c821 (diff)
Fix bus_space_{read,write}_raw_region_# operation.
Diffstat (limited to 'sys/arch/sgi')
-rw-r--r--sys/arch/sgi/include/bus.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/sgi/include/bus.h b/sys/arch/sgi/include/bus.h
index f74d4d354b2..9772ca857f2 100644
--- a/sys/arch/sgi/include/bus.h
+++ b/sys/arch/sgi/include/bus.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: bus.h,v 1.22 2009/12/25 21:02:18 miod Exp $ */
+/* $OpenBSD: bus.h,v 1.23 2010/04/04 11:24:30 miod Exp $ */
/*
* Copyright (c) 2003-2004 Opsycon AB Sweden. All rights reserved.
@@ -159,7 +159,7 @@ CAT(bus_space_read_raw_region_,n)(bus_space_tag_t bst, \
{ \
cnt >>= ((n) >> 1); \
while (cnt--) { \
- CAT(bus_space_read_raw_multi_,n)(bst, bsh, ba, x, 1); \
+ CAT(bus_space_read_raw_multi_,n)(bst, bsh, ba, x, (n)); \
ba += (n); \
x += (n); \
} \
@@ -211,7 +211,7 @@ CAT(bus_space_write_raw_region_,n)(bus_space_tag_t bst, \
{ \
cnt >>= ((n) >> 1); \
while (cnt--) { \
- CAT(bus_space_write_raw_multi_,n)(bst, bsh, ba, x, 1); \
+ CAT(bus_space_write_raw_multi_,n)(bst, bsh, ba, x, (n)); \
ba += (n); \
x += (n); \
} \