summaryrefslogtreecommitdiffstats
path: root/arch/ppc64/kernel/cpu_setup_power4.S
diff options
context:
space:
mode:
authorArnd Bergmann2005-06-23 01:43:37 +0200
committerPaul Mackerras2005-06-23 01:43:37 +0200
commitfef1c772fa154c16e0a54577e9ecb5480f7b937e (patch)
tree7c1483966f984c822b58f761b9be873dce94999c /arch/ppc64/kernel/cpu_setup_power4.S
parent[PATCH] ppc64: add a watchdog driver for rtas (diff)
downloadkernel-qcow2-linux-fef1c772fa154c16e0a54577e9ecb5480f7b937e.tar.gz
kernel-qcow2-linux-fef1c772fa154c16e0a54577e9ecb5480f7b937e.tar.xz
kernel-qcow2-linux-fef1c772fa154c16e0a54577e9ecb5480f7b937e.zip
[PATCH] ppc64: add BPA platform type
This adds the basic support for running on BPA machines. So far, this is only the IBM workstation, and it will not run on others without a little more generalization. It should be possible to configure a kernel for any combination of CONFIG_PPC_BPA with any of the other multiplatform targets. Signed-off-by: Arnd Bergmann <arndb@de.ibm.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc64/kernel/cpu_setup_power4.S')
-rw-r--r--arch/ppc64/kernel/cpu_setup_power4.S16
1 files changed, 15 insertions, 1 deletions
diff --git a/arch/ppc64/kernel/cpu_setup_power4.S b/arch/ppc64/kernel/cpu_setup_power4.S
index 3bd951820850..42fc08cf87a0 100644
--- a/arch/ppc64/kernel/cpu_setup_power4.S
+++ b/arch/ppc64/kernel/cpu_setup_power4.S
@@ -73,7 +73,21 @@ _GLOBAL(__970_cpu_preinit)
_GLOBAL(__setup_cpu_power4)
blr
-
+
+_GLOBAL(__setup_cpu_be)
+ /* Set large page sizes LP=0: 16MB, LP=1: 64KB */
+ addi r3, 0, 0
+ ori r3, r3, HID6_LB
+ sldi r3, r3, 32
+ nor r3, r3, r3
+ mfspr r4, SPRN_HID6
+ and r4, r4, r3
+ addi r3, 0, 0x02000
+ sldi r3, r3, 32
+ or r4, r4, r3
+ mtspr SPRN_HID6, r4
+ blr
+
_GLOBAL(__setup_cpu_ppc970)
mfspr r0,SPRN_HID0
li r11,5 /* clear DOZE and SLEEP */