diff options
author | Rafal Jaworowski <raj@FreeBSD.org> | 2009-04-22 13:11:38 +0000 |
---|---|---|
committer | Rafal Jaworowski <raj@FreeBSD.org> | 2009-04-22 13:11:38 +0000 |
commit | b9b8eb777fb0dcdf66dbc08de0d5eee9c45e14d9 (patch) | |
tree | 84f339ba66bce8e572cae8d1409ffc2a45766fb3 /sys/powerpc/booke | |
parent | 1f6ac2bd3d9b048676794adc651cf9a5ad67791c (diff) | |
download | src-b9b8eb777fb0dcdf66dbc08de0d5eee9c45e14d9.tar.gz src-b9b8eb777fb0dcdf66dbc08de0d5eee9c45e14d9.zip |
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
Notes
Notes:
svn path=/head/; revision=191375
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 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 |