diff options
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r-- | arch/powerpc/kernel/Makefile | 2 | ||||
-rw-r--r-- | arch/powerpc/kernel/head_32.S | 7 | ||||
-rw-r--r-- | arch/powerpc/kernel/head_64.S | 6 |
3 files changed, 11 insertions, 4 deletions
diff --git a/arch/powerpc/kernel/Makefile b/arch/powerpc/kernel/Makefile index dfec3d2790b2..71901fbda4a5 100644 --- a/arch/powerpc/kernel/Makefile +++ b/arch/powerpc/kernel/Makefile | |||
@@ -75,7 +75,7 @@ obj-y += time.o prom.o traps.o setup-common.o \ | |||
75 | obj-$(CONFIG_PPC32) += entry_32.o setup_32.o | 75 | obj-$(CONFIG_PPC32) += entry_32.o setup_32.o |
76 | obj-$(CONFIG_PPC64) += dma-iommu.o iommu.o | 76 | obj-$(CONFIG_PPC64) += dma-iommu.o iommu.o |
77 | obj-$(CONFIG_KGDB) += kgdb.o | 77 | obj-$(CONFIG_KGDB) += kgdb.o |
78 | obj-$(CONFIG_PPC_MULTIPLATFORM) += prom_init.o | 78 | obj-$(CONFIG_PPC_OF_BOOT_TRAMPOLINE) += prom_init.o |
79 | obj-$(CONFIG_MODULES) += ppc_ksyms.o | 79 | obj-$(CONFIG_MODULES) += ppc_ksyms.o |
80 | obj-$(CONFIG_BOOTX_TEXT) += btext.o | 80 | obj-$(CONFIG_BOOTX_TEXT) += btext.o |
81 | obj-$(CONFIG_SMP) += smp.o | 81 | obj-$(CONFIG_SMP) += smp.o |
diff --git a/arch/powerpc/kernel/head_32.S b/arch/powerpc/kernel/head_32.S index a1c4cfd25ded..f8c2e6b6f457 100644 --- a/arch/powerpc/kernel/head_32.S +++ b/arch/powerpc/kernel/head_32.S | |||
@@ -108,18 +108,21 @@ __start: | |||
108 | * because OF may have I/O devices mapped into that area | 108 | * because OF may have I/O devices mapped into that area |
109 | * (particularly on CHRP). | 109 | * (particularly on CHRP). |
110 | */ | 110 | */ |
111 | #ifdef CONFIG_PPC_MULTIPLATFORM | ||
112 | cmpwi 0,r5,0 | 111 | cmpwi 0,r5,0 |
113 | beq 1f | 112 | beq 1f |
114 | 113 | ||
114 | #ifdef CONFIG_PPC_OF_BOOT_TRAMPOLINE | ||
115 | /* find out where we are now */ | 115 | /* find out where we are now */ |
116 | bcl 20,31,$+4 | 116 | bcl 20,31,$+4 |
117 | 0: mflr r8 /* r8 = runtime addr here */ | 117 | 0: mflr r8 /* r8 = runtime addr here */ |
118 | addis r8,r8,(_stext - 0b)@ha | 118 | addis r8,r8,(_stext - 0b)@ha |
119 | addi r8,r8,(_stext - 0b)@l /* current runtime base addr */ | 119 | addi r8,r8,(_stext - 0b)@l /* current runtime base addr */ |
120 | bl prom_init | 120 | bl prom_init |
121 | #endif /* CONFIG_PPC_OF_BOOT_TRAMPOLINE */ | ||
122 | |||
123 | /* We never return. We also hit that trap if trying to boot | ||
124 | * from OF while CONFIG_PPC_OF_BOOT_TRAMPOLINE isn't selected */ | ||
121 | trap | 125 | trap |
122 | #endif | ||
123 | 126 | ||
124 | /* | 127 | /* |
125 | * Check for BootX signature when supporting PowerMac and branch to | 128 | * Check for BootX signature when supporting PowerMac and branch to |
diff --git a/arch/powerpc/kernel/head_64.S b/arch/powerpc/kernel/head_64.S index ebaedafc8e67..50ef505b8fb6 100644 --- a/arch/powerpc/kernel/head_64.S +++ b/arch/powerpc/kernel/head_64.S | |||
@@ -1360,6 +1360,7 @@ _GLOBAL(__start_initialization_multiplatform) | |||
1360 | b .__after_prom_start | 1360 | b .__after_prom_start |
1361 | 1361 | ||
1362 | _INIT_STATIC(__boot_from_prom) | 1362 | _INIT_STATIC(__boot_from_prom) |
1363 | #ifdef CONFIG_PPC_OF_BOOT_TRAMPOLINE | ||
1363 | /* Save parameters */ | 1364 | /* Save parameters */ |
1364 | mr r31,r3 | 1365 | mr r31,r3 |
1365 | mr r30,r4 | 1366 | mr r30,r4 |
@@ -1390,7 +1391,10 @@ _INIT_STATIC(__boot_from_prom) | |||
1390 | /* Do all of the interaction with OF client interface */ | 1391 | /* Do all of the interaction with OF client interface */ |
1391 | mr r8,r26 | 1392 | mr r8,r26 |
1392 | bl .prom_init | 1393 | bl .prom_init |
1393 | /* We never return */ | 1394 | #endif /* #CONFIG_PPC_OF_BOOT_TRAMPOLINE */ |
1395 | |||
1396 | /* We never return. We also hit that trap if trying to boot | ||
1397 | * from OF while CONFIG_PPC_OF_BOOT_TRAMPOLINE isn't selected */ | ||
1394 | trap | 1398 | trap |
1395 | 1399 | ||
1396 | _STATIC(__after_prom_start) | 1400 | _STATIC(__after_prom_start) |