aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2005-08-19 00:52:32 -0400
committerPaul Mackerras <paulus@samba.org>2005-08-28 20:53:34 -0400
commit60ba44945714d9b7dae8b85ab0926f6f13809c73 (patch)
treecdf432886e5e36ca2f45eac7daa09d09ec1c9882 /arch
parent0ab20002f4b41f4b1799bad5948389da1c4c8444 (diff)
[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>
Diffstat (limited to 'arch')
-rw-r--r--arch/ppc64/kernel/head.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/ppc64/kernel/head.S b/arch/ppc64/kernel/head.S
index 70e10403b697..1cc9f203c22f 100644
--- a/arch/ppc64/kernel/head.S
+++ b/arch/ppc64/kernel/head.S
@@ -93,6 +93,7 @@ END_FTR_SECTION(0, 1)
93 93
94 /* Catch branch to 0 in real mode */ 94 /* Catch branch to 0 in real mode */
95 trap 95 trap
96
96#ifdef CONFIG_PPC_ISERIES 97#ifdef CONFIG_PPC_ISERIES
97 /* 98 /*
98 * At offset 0x20, there is a pointer to iSeries LPAR data. 99 * At offset 0x20, there is a pointer to iSeries LPAR data.
@@ -119,7 +120,7 @@ embedded_sysmap_start:
119embedded_sysmap_end: 120embedded_sysmap_end:
120 .llong 0 121 .llong 0
121 122
122#else /* CONFIG_PPC_ISERIES */ 123#endif /* CONFIG_PPC_ISERIES */
123 124
124 /* Secondary processors spin on this value until it goes to 1. */ 125 /* Secondary processors spin on this value until it goes to 1. */
125 .globl __secondary_hold_spinloop 126 .globl __secondary_hold_spinloop
@@ -169,7 +170,6 @@ _GLOBAL(__secondary_hold)
169 BUG_OPCODE 170 BUG_OPCODE
170#endif 171#endif
171#endif 172#endif
172#endif
173 173
174/* This value is used to mark exception frames on the stack. */ 174/* This value is used to mark exception frames on the stack. */
175 .section ".toc","aw" 175 .section ".toc","aw"