summaryrefslogtreecommitdiffstats
path: root/lib_nios/board.c
diff options
context:
space:
mode:
authorwdenk <wdenk>2004-07-01 20:28:03 +0000
committerwdenk <wdenk>2004-07-01 20:28:03 +0000
commit93f6a6771ba04b217e4c8bbca9196fd16e364479 (patch)
treec0d9075172ab086e90c4991f302aca4c4f2f6d6c /lib_nios/board.c
parent39539887ea7dc298c98ac1fddd38551dfa335120 (diff)
downloadblackbird-obmc-uboot-93f6a6771ba04b217e4c8bbca9196fd16e364479.tar.gz
blackbird-obmc-uboot-93f6a6771ba04b217e4c8bbca9196fd16e364479.zip
* Patches by Richard Woodruff, 10 Jun 2004:
- fix problems with examples/stubs.c for GCC >= 3.4 - fix problems with gd initialization * Enable FAT filesystem support for HMI10 board
Diffstat (limited to 'lib_nios/board.c')
-rw-r--r--lib_nios/board.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib_nios/board.c b/lib_nios/board.c
index 30044f7ade..e6cda521ed 100644
--- a/lib_nios/board.c
+++ b/lib_nios/board.c
@@ -117,6 +117,9 @@ void board_init (void)
* Nios treats CFG_GBL_DATA_OFFSET as an address.
*/
gd = (gd_t *)CFG_GBL_DATA_OFFSET;
+ /* compiler optimization barrier needed for GCC >= 3.4 */
+ __asm__ __volatile__("": : :"memory");
+
memset( gd, 0, CFG_GBL_DATA_SIZE );
gd->bd = (bd_t *)(gd+1); /* At end of global data */
OpenPOWER on IntegriCloud