mpc83xx: use r4 instead of r2 in lock_ram_in_cache and unlock_ram_in_cache
authorNick Spence <nick.spence@freescale.com>
Thu, 28 Aug 2008 21:09:11 +0000 (14:09 -0700)
committerKim Phillips <kim.phillips@freescale.com>
Wed, 3 Sep 2008 21:06:51 +0000 (16:06 -0500)
commitade50c7fa1b16ef98be17e9c3ae286aecf4f5605
tree4b9533cbea8331453998f3d421015cf717755d35
parentd9fe88173cb4f7d293796ffe10c7a0d3d426d8f9
mpc83xx: 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 <nick.spence@freescale.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
cpu/mpc83xx/start.S