From 7bc5ee0785a528962bffc586f7d447d79e2642b4 Mon Sep 17 00:00:00 2001 From: Wolfgang Denk Date: Fri, 26 Aug 2005 01:36:03 +0200 Subject: Prepare U-Boot for gcc-4.x --- lib_ppc/board.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib_ppc') diff --git a/lib_ppc/board.c b/lib_ppc/board.c index dab268e351..04aa8f9b4d 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); /* -- cgit v1.2.3