diff options
author | raj <raj@FreeBSD.org> | 2009-04-22 13:11:38 +0000 |
---|---|---|
committer | raj <raj@FreeBSD.org> | 2009-04-22 13:11:38 +0000 |
commit | 8f223712ebdf58e26ef092e1181641c478e5cd27 (patch) | |
tree | 84f339ba66bce8e572cae8d1409ffc2a45766fb3 /sys/powerpc/booke | |
parent | 37d071982a18633dd2c39083e25fd407e11e8875 (diff) | |
download | FreeBSD-src-8f223712ebdf58e26ef092e1181641c478e5cd27.zip FreeBSD-src-8f223712ebdf58e26ef092e1181641c478e5cd27.tar.gz |
Centralize setting HID0/1 for E500. Rename HID defines which are specific
to E500 rather than shared within Book-E family.
Obtained from: Freescale, Semihalf
Diffstat (limited to 'sys/powerpc/booke')
-rw-r--r-- | sys/powerpc/booke/locore.S | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/powerpc/booke/locore.S b/sys/powerpc/booke/locore.S index 7034c46..f62d994 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 |