MPC512x: Change traps.c to not reference non-addressable memory
authorBecky Bruce <becky.bruce@freescale.com>
Wed, 14 May 2008 18:09:51 +0000 (13:09 -0500)
committerWolfgang Denk <wd@denx.de>
Tue, 3 Jun 2008 17:47:14 +0000 (19:47 +0200)
commit9b124a68346ce9605b6e1fcf79e1021541cdba9e
tree4b5a015b0dcf5b2ab17765498519bf8ea12355ab
parent81673e9ae14b771cd13faf19947192599cae3959
MPC512x: 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.

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