Sfoglia il codice sorgente

Bracket READ_TIMER macro in cpu/arm1136/omap24xx/interrupts.c
to prevent compilation error.

Signed-off-by: Peter Pearse <peter.pearse@arm.com>

Peter Pearse 17 anni fa
parent
commit
066bebd635
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      cpu/arm1136/omap24xx/interrupts.c

+ 1 - 1
cpu/arm1136/omap24xx/interrupts.c

@@ -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;