aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/head_32.S
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2005-10-17 05:20:46 -0400
committerPaul Mackerras <paulus@samba.org>2005-10-17 05:20:46 -0400
commit30cd4a4e9c25e154ba087848a839bd0c6d024092 (patch)
tree8ba678b5e025b1d5e1f1b18e14662d2da720a0f7 /arch/powerpc/kernel/head_32.S
parent7dffb72028bfd909ac51a1546d182de2df4d2426 (diff)
powerpc: Initialize btext subsystem later, after prom_init
We were initializing the btext stuff from prom_init(), thus breaking the rule that all communication between prom_init() and the rest of the kernel has to be via the flattened device tree. This removes the btext initialization calls from prom_init() and initializes it instead after the device tree is unflattened. It would be nice to do it earlier, but that needs some more infrastructure to find the properties we need in the flattened device tree. Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/head_32.S')
-rw-r--r--arch/powerpc/kernel/head_32.S28
1 files changed, 0 insertions, 28 deletions
diff --git a/arch/powerpc/kernel/head_32.S b/arch/powerpc/kernel/head_32.S
index d9b063f567e0..7ef9a3e3002b 100644
--- a/arch/powerpc/kernel/head_32.S
+++ b/arch/powerpc/kernel/head_32.S
@@ -153,9 +153,6 @@ __after_mmu_off:
153 bl flush_tlbs 153 bl flush_tlbs
154 154
155 bl initial_bats 155 bl initial_bats
156#if !defined(CONFIG_APUS) && defined(CONFIG_BOOTX_TEXT)
157 bl setup_disp_bat
158#endif
159 156
160/* 157/*
161 * Call setup_cpu for CPU 0 and initialize 6xx Idle 158 * Call setup_cpu for CPU 0 and initialize 6xx Idle
@@ -1297,31 +1294,6 @@ initial_bats:
1297 isync 1294 isync
1298 blr 1295 blr
1299 1296
1300#if !defined(CONFIG_APUS) && defined(CONFIG_BOOTX_TEXT)
1301setup_disp_bat:
1302 /*
1303 * setup the display bat prepared for us in prom.c
1304 */
1305 mflr r8
1306 bl reloc_offset
1307 mtlr r8
1308 addis r8,r3,disp_BAT@ha
1309 addi r8,r8,disp_BAT@l
1310 lwz r11,0(r8)
1311 lwz r8,4(r8)
1312 mfspr r9,SPRN_PVR
1313 rlwinm r9,r9,16,16,31 /* r9 = 1 for 601, 4 for 604 */
1314 cmpwi 0,r9,1
1315 beq 1f
1316 mtspr SPRN_DBAT3L,r8
1317 mtspr SPRN_DBAT3U,r11
1318 blr
13191: mtspr SPRN_IBAT3L,r8
1320 mtspr SPRN_IBAT3U,r11
1321 blr
1322
1323#endif /* !defined(CONFIG_APUS) && defined(CONFIG_BOOTX_TEXT) */
1324
1325 1297
1326#ifdef CONFIG_8260 1298#ifdef CONFIG_8260
1327/* Jump into the system reset for the rom. 1299/* Jump into the system reset for the rom.