summaryrefslogtreecommitdiff
path: root/lib_m68k/board.c
diff options
context:
space:
mode:
authorMarian Balakowicz <m8@semihalf.com>2006-05-09 11:28:36 +0200
committerMarian Balakowicz <m8@semihalf.com>2006-05-09 11:28:36 +0200
commit483a0cf804dfc2b320fc32c7de77d23502dadfd5 (patch)
tree479523b54a0a46554cacb11fbfc1bd4202bd687d /lib_m68k/board.c
parent7a635e004ec12bd2a0bae9f90fbb5769b524a42e (diff)
Fixes for gcc 3.4 based m68k toolchain,
based on patch by Jate Sujjavanich.
Diffstat (limited to 'lib_m68k/board.c')
-rw-r--r--lib_m68k/board.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib_m68k/board.c b/lib_m68k/board.c
index e25833b32b..c13268c09e 100644
--- a/lib_m68k/board.c
+++ b/lib_m68k/board.c
@@ -261,6 +261,7 @@ board_init_f (ulong bootflag)
{
bd_t *bd;
ulong len, addr, addr_sp;
+ ulong *paddr;
gd_t *id;
init_fnc_t **init_fnc_ptr;
#ifdef CONFIG_PRAM
@@ -357,8 +358,12 @@ board_init_f (ulong bootflag)
*/
addr_sp -= 16;
addr_sp &= ~0xF;
- *((ulong *) addr_sp)-- = 0;
- *((ulong *) addr_sp)-- = 0;
+
+ paddr = (ulong *)addr_sp;
+ *paddr-- = 0;
+ *paddr-- = 0;
+ addr_sp = (ulong)paddr;
+
debug ("Stack Pointer at: %08lx\n", addr_sp);
/*