From: Wolfgang Denk Date: Thu, 05 Jun 2008 00:06:07 +0200 Subject: [U-Boot-Users] [PATCH] MPC512x: Change traps.c to not reference non-addressable memory In-Reply-To: Your message of "Wed, 14 May 2008 13:09:51 CDT." <1210788591-6996-1-git-send-email-becky.bruce@freescale.com> Message-ID: <20080604220607.D5202247CC@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <1210788591-6996-1-git-send-email-becky.bruce@freescale.com> you wrote: > From: Becky Bruce > > 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 > --- > cpu/mpc512x/traps.c | 8 +++++++- > 1 files changed, 7 insertions(+), 1 deletions(-) Applied, thanks! Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de The sight of death frightens them [Earthers]. -- Kras the Klingon, "Friday's Child", stardate 3497.2