diff options
author | Scott Wood <scottwood@freescale.com> | 2009-08-20 17:45:05 -0500 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2009-09-15 21:30:08 -0500 |
commit | dcc87dd58db466caa2d66755c5ec9455edf42fe8 (patch) | |
tree | a1d1174bd31fc211141eb7bc8e18354219f24686 /cpu/mpc85xx/start.S | |
parent | 1b72dbecca2d7ad7a21c92d80227daa2d8ec5a57 (diff) | |
download | u-boot-imx-dcc87dd58db466caa2d66755c5ec9455edf42fe8.zip u-boot-imx-dcc87dd58db466caa2d66755c5ec9455edf42fe8.tar.gz u-boot-imx-dcc87dd58db466caa2d66755c5ec9455edf42fe8.tar.bz2 |
ppc/85xx: Ensure that MAS8 is zero when writing TLB entries.
Its reset value is random, and we sometimes read uninitialized TLB
arrays. Make sure that we don't retain MAS8 from reading such an entry
if the VF bit in MAS8 is set, attempts to use the mapping will trap.
Signed-off-by: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'cpu/mpc85xx/start.S')
-rw-r--r-- | cpu/mpc85xx/start.S | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpu/mpc85xx/start.S b/cpu/mpc85xx/start.S index eaed0e0..7a23b4f 100644 --- a/cpu/mpc85xx/start.S +++ b/cpu/mpc85xx/start.S @@ -156,6 +156,10 @@ _start_e500: mtspr MCSR,r0 /* machine check syndrome register */ mtxer r0 /* clear integer exception register */ +#ifdef CONFIG_SYS_BOOK3E_HV + mtspr MAS8,r0 /* make sure MAS8 is clear */ +#endif + /* Enable Time Base and Select Time Base Clock */ lis r0,HID0_EMCP@h /* Enable machine check */ #if defined(CONFIG_ENABLE_36BIT_PHYS) |