aboutsummaryrefslogtreecommitdiffstats
path: root/src/arch/arm/include/arch
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/arm/include/arch')
-rw-r--r--src/arch/arm/include/arch/io.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/arch/arm/include/arch/io.h b/src/arch/arm/include/arch/io.h
index 9037ab91f..51d96b925 100644
--- a/src/arch/arm/include/arch/io.h
+++ b/src/arch/arm/include/arch/io.h
@@ -32,11 +32,11 @@
* re-factor all code to specify the data length intended.
*/
#define readb(a) read8(a)
-#define writeb(v,a) write8(v,a)
+#define writeb(v,a) write8(a,v)
#define readw(a) read16(a)
-#define writew(v,a) write16(v,a)
+#define writew(v,a) write16(a,v)
#define readl(a) read32(a)
-#define writel(v,a) write32(v,a)
+#define writel(v,a) write32(a,v)
/*
* Clear and set bits in one shot. These macros can be used to clear and