clear IR & DR and enable FP

git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1346 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Greg Watson 2004-01-22 00:04:58 +00:00
parent 47624a8e13
commit 7a186938b0
1 changed files with 11 additions and 4 deletions

View File

@ -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