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/loongson/include/bus.h | |
parent | 9b55dd9def09fe7a78967a6a68ed4bb3b393c821 (diff) |
Fix bus_space_{read,write}_raw_region_# operation.
Diffstat (limited to 'sys/arch/loongson/include/bus.h')
-rw-r--r-- | sys/arch/loongson/include/bus.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/loongson/include/bus.h b/sys/arch/loongson/include/bus.h index 849294ec291..49b347af863 100644 --- a/sys/arch/loongson/include/bus.h +++ b/sys/arch/loongson/include/bus.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bus.h,v 1.1 2009/12/25 21:25:46 miod Exp $ */ +/* $OpenBSD: bus.h,v 1.2 2010/04/04 11:24:27 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); \ } \ |