[PATCH] Fix apparent code overlap in ppc64 head.S

An #if/#else construct near the top of ppc64's head.S appears to
create overlapping sections of code for iSeries and pSeries (i.e. one
thing on iSeries and something different in the same place on
pSeries). In fact, checking the various absolute offsets, it doesn't.
This patch unravels the #ifdefs to make it more obvious what's going
on. This accomplishes another microstep towards a single kernel image
which can boot both iSeries and pSeries.

Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>

authored by

David Gibson and committed by
Paul Mackerras
60ba4494 0ab20002

+2 -2
+2 -2
arch/ppc64/kernel/head.S
··· 93 94 /* Catch branch to 0 in real mode */ 95 trap 96 #ifdef CONFIG_PPC_ISERIES 97 /* 98 * At offset 0x20, there is a pointer to iSeries LPAR data. ··· 120 embedded_sysmap_end: 121 .llong 0 122 123 - #else /* CONFIG_PPC_ISERIES */ 124 125 /* Secondary processors spin on this value until it goes to 1. */ 126 .globl __secondary_hold_spinloop ··· 168 b .pSeries_secondary_smp_init 169 #else 170 BUG_OPCODE 171 - #endif 172 #endif 173 #endif 174
··· 93 94 /* Catch branch to 0 in real mode */ 95 trap 96 + 97 #ifdef CONFIG_PPC_ISERIES 98 /* 99 * At offset 0x20, there is a pointer to iSeries LPAR data. ··· 119 embedded_sysmap_end: 120 .llong 0 121 122 + #endif /* CONFIG_PPC_ISERIES */ 123 124 /* Secondary processors spin on this value until it goes to 1. */ 125 .globl __secondary_hold_spinloop ··· 167 b .pSeries_secondary_smp_init 168 #else 169 BUG_OPCODE 170 #endif 171 #endif 172