diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2005-11-23 01:58:13 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-01-08 22:49:58 -0500 |
commit | d7f3945420b5d8114f2d4d85e90abe5063cc196a (patch) | |
tree | ed09dbc5b91827c09d62af225ff826e2153e42af /arch/powerpc/kernel/head_32.S | |
parent | 51d3082fe6e55aecfa17113dbe98077c749f724c (diff) |
[PATCH] powerpc: Add back support for booting from BootX (#2)
ARCH=powerpc couldn't boot from BootX as it uses a "different" way of
getting in the kernel. This patch adds the necessary trampolines,
creating a flattened device-tree from the tree passed from MacOS, and
initializing the btext engine early for really-early debugging.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
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.S | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/head_32.S b/arch/powerpc/kernel/head_32.S index fdd34dbd8797..6359e364fe66 100644 --- a/arch/powerpc/kernel/head_32.S +++ b/arch/powerpc/kernel/head_32.S | |||
@@ -125,6 +125,19 @@ __start: | |||
125 | bl prom_init | 125 | bl prom_init |
126 | trap | 126 | trap |
127 | 127 | ||
128 | /* | ||
129 | * Check for BootX signature when supporting PowerMac and branch to | ||
130 | * appropriate trampoline if it's present | ||
131 | */ | ||
132 | #ifdef CONFIG_PPC_PMAC | ||
133 | 1: lis r31,0x426f | ||
134 | ori r31,r31,0x6f58 | ||
135 | cmpw 0,r3,r31 | ||
136 | bne 1f | ||
137 | bl bootx_init | ||
138 | trap | ||
139 | #endif /* CONFIG_PPC_PMAC */ | ||
140 | |||
128 | 1: mr r31,r3 /* save parameters */ | 141 | 1: mr r31,r3 /* save parameters */ |
129 | mr r30,r4 | 142 | mr r30,r4 |
130 | li r24,0 /* cpu # */ | 143 | li r24,0 /* cpu # */ |