From 7a186938b0e6ea484ee87008c0e353bae8593261 Mon Sep 17 00:00:00 2001 From: Greg Watson Date: Thu, 22 Jan 2004 00:04:58 +0000 Subject: clear IR & DR and enable FP git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1346 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/cpu/ppc/mpc74xx/mpc74xx.inc | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/cpu/ppc/mpc74xx/mpc74xx.inc b/src/cpu/ppc/mpc74xx/mpc74xx.inc index 3391b28a44..55e290dbe9 100644 --- a/src/cpu/ppc/mpc74xx/mpc74xx.inc +++ b/src/cpu/ppc/mpc74xx/mpc74xx.inc @@ -28,16 +28,23 @@ #define BSP_IOMASK2 BAT_BL_64M | BAT_VALID_SUPERVISOR | BAT_VALID_USER isync + sync /* - * Disable dcache and MMU, so we're in a known state + * Disable dcache and MMU + * Clear IR & DR + * Enable FP */ li r0, 0 - sync mtspr HID0, r0 - sync - mtmsr r0 + sync + mfmsr r3 + li r4, 0x0030 /* IR & DR */ + andc r3, r3, r4 + ori r3, r3, 0x2000 /* FP */ + mtmsr r3 isync + sync /* * Invalidate D & I BATS -- cgit v1.2.3