aboutsummaryrefslogtreecommitdiff
path: root/sys/powerpc/booke
diff options
context:
space:
mode:
Diffstat (limited to 'sys/powerpc/booke')
-rw-r--r--sys/powerpc/booke/locore.S10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/powerpc/booke/locore.S b/sys/powerpc/booke/locore.S
index 7034c4615a20..f62d9948145d 100644
--- a/sys/powerpc/booke/locore.S
+++ b/sys/powerpc/booke/locore.S
@@ -29,6 +29,7 @@
#include "assym.s"
#include <machine/asm.h>
+#include <machine/hid.h>
#include <machine/param.h>
#include <machine/spr.h>
#include <machine/psl.h>
@@ -103,6 +104,15 @@ __start:
mtmsr %r3
isync
+ lis %r3, HID0_E500_DEFAULT_SET@h
+ ori %r3, %r3, HID0_E500_DEFAULT_SET@l
+ mtspr SPR_HID0, %r3
+ isync
+ lis %r3, HID1_E500_DEFAULT_SET@h
+ ori %r3, %r3, HID1_E500_DEFAULT_SET@l
+ mtspr SPR_HID1, %r3
+ isync
+
/* Invalidate all entries in TLB0 */
li %r3, 0
bl tlb_inval_all