From: Wolfgang Denk Date: Fri, 31 Oct 2008 00:25:18 +0100 Subject: [U-Boot] [PATCH] 74xx: use r4 instead of r2 in lock_ram_in_cache and unlock_ram_in_cache In-Reply-To: <1224770375-30288-1-git-send-email-daveliu@freescale.com> References: <1224770375-30288-1-git-send-email-daveliu@freescale.com> Message-ID: <20081030232518.B43BB8522296@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 Dear Dave Liu, In message <1224770375-30288-1-git-send-email-daveliu@freescale.com> you wrote: > The patch is following the commit 392438406041415fe64ab8748ec5ab5ad01d1cf7 > > mpc86xx: use r4 instead of r2 in lock_ram_in_cache and unlock_ram_in_cache > > This is needed in unlock_ram_in_cache() because it is called from C and > will corrupt the small data area anchor that is kept in R2. > > lock_ram_in_cache() is modified similarly as good coding practice, but > is not called from C. > > Signed-off-by: Nick Spence > > also, the r2 is used as global data pointer. > > Signed-off-by: Dave Liu > --- > cpu/74xx_7xx/start.S | 8 ++++---- > 1 files changed, 4 insertions(+), 4 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 I've already got a female to worry about. Her name is the Enterprise. -- Kirk, "The Corbomite Maneuver", stardate 1514.0