diff options
author | Markus Klotzbücher <Markus Klotzbümk@pollux.(none)> | 2006-02-10 11:25:41 +0100 |
---|---|---|
committer | Markus Klotzbücher <mk@pollux.(none)> | 2006-02-10 11:25:41 +0100 |
commit | b2b43463af8e39ea57bca95bcb24d64e12bbd510 (patch) | |
tree | 268b571e3c2fac1700bc3f7c97c046844514ed85 | |
parent | b3c36e6b9427b8d05c8982d7ebe46be59662c4da (diff) | |
download | u-boot-imx-b2b43463af8e39ea57bca95bcb24d64e12bbd510.zip u-boot-imx-b2b43463af8e39ea57bca95bcb24d64e12bbd510.tar.gz u-boot-imx-b2b43463af8e39ea57bca95bcb24d64e12bbd510.tar.bz2 |
Changed gcc-4.0 global data pointer fix to conform with the fix for this on
other platforms (see c75eba3b4140187cd0d9bd8049f5df4c49b6889b)
-rw-r--r-- | include/asm-arm/global_data.h | 2 | ||||
-rw-r--r-- | lib_arm/board.c | 7 |
2 files changed, 3 insertions, 6 deletions
diff --git a/include/asm-arm/global_data.h b/include/asm-arm/global_data.h index b3c7084..0b6c817 100644 --- a/include/asm-arm/global_data.h +++ b/include/asm-arm/global_data.h @@ -61,7 +61,7 @@ typedef struct global_data { #define GD_FLG_DEVINIT 0x00002 /* Devices have been initialized */ #define GD_FLG_SILENT 0x00004 /* Silent mode */ -#define GCC_4_SCREW_GDP 1 +#undef GCC_4_SCREW_GDP #ifdef GCC_4_SCREW_GDP # define DECLARE_GLOBAL_DATA_PTR register gd_t* volatile gd asm ("r8"); #else diff --git a/lib_arm/board.c b/lib_arm/board.c index 9c9eb68..a420de1 100644 --- a/lib_arm/board.c +++ b/lib_arm/board.c @@ -54,6 +54,8 @@ #include "../drivers/lan91c96.h" #endif +DECLARE_GLOBAL_DATA_PTR; + #if (CONFIG_COMMANDS & CFG_CMD_NAND) void nand_init (void); #endif @@ -121,8 +123,6 @@ void *sbrk (ptrdiff_t increment) static int init_baudrate (void) { - DECLARE_GLOBAL_DATA_PTR; - uchar tmp[64]; /* long enough for environment variables */ int i = getenv_r ("baudrate", tmp, sizeof (tmp)); gd->bd->bi_baudrate = gd->baudrate = (i > 0) @@ -157,7 +157,6 @@ static int display_banner (void) */ static int display_dram_config (void) { - DECLARE_GLOBAL_DATA_PTR; int i; #ifdef DEBUG @@ -236,8 +235,6 @@ init_fnc_t *init_sequence[] = { void start_armboot (void) { - DECLARE_GLOBAL_DATA_PTR; - ulong size; init_fnc_t **init_fnc_ptr; char *s; |