]> git.sur5r.net Git - u-boot/commit
MPC86xx: Change traps.c to not reference non-addressable memory
authorBecky Bruce <becky.bruce@freescale.com>
Wed, 14 May 2008 18:09:58 +0000 (13:09 -0500)
committerJon Loeliger <jdl@freescale.com>
Fri, 6 Jun 2008 15:55:35 +0000 (10:55 -0500)
commit279726bd00558e80263d44581c44167625b7fb9a
treece58980690892c79147b8d38aef7edfb636bdbb4
parent1a247ba7fa5fb09f56892a09a990f03ce564b3e2
MPC86xx: Change traps.c to not reference non-addressable memory

Currently, END_OF_RAM is used by the trap code to determine if
we should attempt to access the stack pointer or not. However,
on systems with a lot of RAM, only a subset of the RAM is
guaranteed to be mapped in and accessible.  Change END_OF_RAM
to use get_effective_memsize() instead of using the raw ram
size out of the bd to prevent us from trying to access
non-mapped memory.

Signed-off-by: Becky Bruce <becky.bruce@freescale.com>
cpu/mpc86xx/traps.c