diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2010-04-04 11:24:31 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2010-04-04 11:24:31 +0000 |
commit | 803c01a401b2c48ee9649632aa98b5873d6cea6f (patch) | |
tree | caa17d1107abbc8e9140b04d0afc06360fc392ab /sys/arch/sgi | |
parent | 9b55dd9def09fe7a78967a6a68ed4bb3b393c821 (diff) |
Fix bus_space_{read,write}_raw_region_# operation.
Diffstat (limited to 'sys/arch/sgi')
-rw-r--r-- | sys/arch/sgi/include/bus.h | 6 |
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); \ } \ |