diff options
author | Wolfgang Denk <wd@pollux.denx.de> | 2005-08-26 01:36:03 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@pollux.denx.de> | 2005-08-26 01:36:03 +0200 |
commit | 7bc5ee0785a528962bffc586f7d447d79e2642b4 (patch) | |
tree | a17cf90defc935ac8d773f06383950c1ff96ea52 /lib_ppc | |
parent | 61dada83f34f83f32163febfd9bfd93bf9b0c732 (diff) |
Prepare U-Boot for gcc-4.x
Diffstat (limited to 'lib_ppc')
-rw-r--r-- | lib_ppc/board.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib_ppc/board.c b/lib_ppc/board.c index dab268e351a..04aa8f9b4d2 100644 --- a/lib_ppc/board.c +++ b/lib_ppc/board.c @@ -352,6 +352,7 @@ void board_init_f (ulong bootflag) bd_t *bd; ulong len, addr, addr_sp; + ulong *s; gd_t *id; init_fnc_t **init_fnc_ptr; #ifdef CONFIG_PRAM @@ -471,8 +472,10 @@ void board_init_f (ulong bootflag) */ addr_sp -= 16; addr_sp &= ~0xF; - *((ulong *) addr_sp)-- = 0; - *((ulong *) addr_sp)-- = 0; + s = (ulong *)addr_sp; + *s-- = 0; + *s-- = 0; + addr_sp = (ulong)s; debug ("Stack Pointer at: %08lx\n", addr_sp); /* |