[POWERPC] iSeries: Use alternate paca structure for booting
The iSeries HV only needs the first two fields of the paca statically initialised, so create an alternate paca that contains only those and switch to our real paca immediately after boot. This is in order to make the 1024 cpu patches easier since they will no longer have to statically initialise the pacas for iSeries. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:

committed by
Paul Mackerras

parent
a7e695f6bf
commit
3eb9cf0761
@@ -44,6 +44,9 @@
|
||||
#include <asm/mmu.h>
|
||||
#include <asm/hvcall.h>
|
||||
#endif
|
||||
#ifdef CONFIG_PPC_ISERIES
|
||||
#include <asm/iseries/alpaca.h>
|
||||
#endif
|
||||
|
||||
#define DEFINE(sym, val) \
|
||||
asm volatile("\n->" #sym " %0 " #val : : "i" (val))
|
||||
@@ -321,6 +324,9 @@ int main(void)
|
||||
DEFINE(PAGE_OFFSET_VSID, KERNEL_VSID(PAGE_OFFSET));
|
||||
DEFINE(VMALLOC_START_ESID, GET_ESID(VMALLOC_START));
|
||||
DEFINE(VMALLOC_START_VSID, KERNEL_VSID(VMALLOC_START));
|
||||
|
||||
/* alpaca */
|
||||
DEFINE(ALPACA_SIZE, sizeof(struct alpaca));
|
||||
#endif
|
||||
|
||||
DEFINE(PGD_TABLE_SIZE, PGD_TABLE_SIZE);
|
||||
|
Reference in New Issue
Block a user