diff options
author | Wolfgang Denk <wd@pollux.denx.de> | 2006-05-09 13:46:55 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@pollux.denx.de> | 2006-05-09 13:46:55 +0200 |
commit | 1cfefe8cb6e1bb43f6509c0aee254e2908d42f21 (patch) | |
tree | eba45129d65b83452d281514802f3895aa4f283e /lib_m68k/board.c | |
parent | 67a94685225b289fb3344cf00fefa91fd93f24ae (diff) | |
parent | 78b123cd69d485887f33ebd33ba1f9b27f8e6916 (diff) | |
download | u-boot-imx-1cfefe8cb6e1bb43f6509c0aee254e2908d42f21.zip u-boot-imx-1cfefe8cb6e1bb43f6509c0aee254e2908d42f21.tar.gz u-boot-imx-1cfefe8cb6e1bb43f6509c0aee254e2908d42f21.tar.bz2 |
Merge with /home/m8/git/u-boot
Diffstat (limited to 'lib_m68k/board.c')
-rw-r--r-- | lib_m68k/board.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib_m68k/board.c b/lib_m68k/board.c index 80c41a6..73d2e3f 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); /* |