Skip to contentSkip to conversation

fix imx-regs.h compilation with ELDK-4.0

PATCH New OTRS Notification Master 1 participant 1 message Feb 12, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix imx-regs.h compilation with ELDK-4.0

Hello list,

inside the automatic U-Boot patch tracking system a new ticket [DNX#2007021242000034] was created:

<snip>

Quoted 26 lines

Compiling cpu/arm920t/imx/generic.c under ELDK-4.0 fails with a bunch
of invalid lvalue errors. The patch below fixes this.

include/asm-arm/arch-imx/imx-regs.h +1 -3
index 318de22..9ec6d03 100644
@@ -8,9 +8,7 @@
 
 # ifndef __ASSEMBLY__
 #  define __REG(x)     (*((volatile u32 *)(x)))
-# define __REG2(x,y)   \
-       ( __builtin_constant_p(y) ? (__REG((x) + (y))) \
-                         : (*(volatile u32 *)((u32)&__REG(x) + (y))) )
+#  define __REG2(x,y)  (*(volatile u32 *)((u32)&__REG(x) + (y)))
 # else
 #  define __REG(x) (x)
 #  define __REG2(x,y) ((x)+(y))
Signature · 3 lines
-- 
Hardware, n.:
        The parts of a computer system that can be kicked.

</snip>

Your U-Boot support team