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:
parent
47624a8e13
commit
7a186938b0
|
@ -28,16 +28,23 @@
|
||||||
#define BSP_IOMASK2 BAT_BL_64M | BAT_VALID_SUPERVISOR | BAT_VALID_USER
|
#define BSP_IOMASK2 BAT_BL_64M | BAT_VALID_SUPERVISOR | BAT_VALID_USER
|
||||||
|
|
||||||
isync
|
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
|
li r0, 0
|
||||||
sync
|
|
||||||
mtspr HID0, r0
|
mtspr HID0, r0
|
||||||
sync
|
sync
|
||||||
mtmsr r0
|
mfmsr r3
|
||||||
|
li r4, 0x0030 /* IR & DR */
|
||||||
|
andc r3, r3, r4
|
||||||
|
ori r3, r3, 0x2000 /* FP */
|
||||||
|
mtmsr r3
|
||||||
isync
|
isync
|
||||||
|
sync
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Invalidate D & I BATS
|
* Invalidate D & I BATS
|
||||||
|
|
Loading…
Reference in New Issue