Bracket READ_TIMER macro in cpu/arm1136/omap24xx/interrupts.c
authorPeter Pearse <peter.pearse@arm.com>
Sun, 30 Mar 2008 10:34:09 +0000 (11:34 +0100)
committerPeter Pearse <peter.pearse@arm.com>
Sun, 30 Mar 2008 10:34:09 +0000 (11:34 +0100)
to prevent compilation error.

Signed-off-by: Peter Pearse <peter.pearse@arm.com>
cpu/arm1136/omap24xx/interrupts.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 5963d62..8503b24
@@ -37,7 +37,7 @@
 #define TIMER_LOAD_VAL 0
 
 /* macro to read the 32 bit timer */
-#define READ_TIMER (*volatile ulong*(CFG_TIMERBASE+TCRR))
+#define READ_TIMER (*((volatile ulong*)(CFG_TIMERBASE+TCRR)))
 
 static ulong timestamp;
 static ulong lastinc;