summaryrefslogtreecommitdiff
path: root/lib_ppc/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib_ppc/board.c')
-rw-r--r--lib_ppc/board.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib_ppc/board.c b/lib_ppc/board.c
index c9e38df..7560a42 100644
--- a/lib_ppc/board.c
+++ b/lib_ppc/board.c
@@ -353,6 +353,8 @@ void board_init_f (ulong bootflag)
/* Pointer is writable since we allocated a register for it */
gd = (gd_t *) (CFG_INIT_RAM_ADDR + CFG_GBL_DATA_OFFSET);
+ /* compiler optimization barrier needed for GCC >= 3.4 */
+ __asm__ __volatile__("": : :"memory");
#if !(defined(CONFIG_8260) || defined(CONFIG_MPC8560))
/* Clear initial global data */