Skip to content

Commit

Permalink
[PATCH] Fix apparent code overlap in ppc64 head.S
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Gibson authored and Paul Mackerras committed Aug 29, 2005
1 parent 0ab2000 commit 60ba449
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/ppc64/kernel/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ END_FTR_SECTION(0, 1)

/* Catch branch to 0 in real mode */
trap

#ifdef CONFIG_PPC_ISERIES
/*
* At offset 0x20, there is a pointer to iSeries LPAR data.
Expand All @@ -119,7 +120,7 @@ embedded_sysmap_start:
embedded_sysmap_end:
.llong 0

#else /* CONFIG_PPC_ISERIES */
#endif /* CONFIG_PPC_ISERIES */

/* Secondary processors spin on this value until it goes to 1. */
.globl __secondary_hold_spinloop
Expand Down Expand Up @@ -169,7 +170,6 @@ _GLOBAL(__secondary_hold)
BUG_OPCODE
#endif
#endif
#endif

/* This value is used to mark exception frames on the stack. */
.section ".toc","aw"
Expand Down

0 comments on commit 60ba449

Please sign in to comment.