diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2005-09-22 23:42:26 -0400 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2005-09-27 03:24:54 -0400 |
commit | 2960eb661a82131b9492cdd1b6500a5f74ccc394 (patch) | |
tree | b5a28da9179cfc0248d74232d1b6fa7d13f8b09c | |
parent | acdbec1b8974f61b0cb69ebe57916f8721b2f3d7 (diff) |
powerpc: Move LparData.c to powerpc platforms
Also rename it to lpardata.c
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
-rw-r--r-- | arch/powerpc/platforms/iseries/Makefile | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/iseries/lpardata.c (renamed from arch/ppc64/kernel/LparData.c) | 18 | ||||
-rw-r--r-- | arch/ppc64/kernel/Makefile | 3 | ||||
-rw-r--r-- | arch/ppc64/kernel/head.S | 2 |
4 files changed, 12 insertions, 13 deletions
diff --git a/arch/powerpc/platforms/iseries/Makefile b/arch/powerpc/platforms/iseries/Makefile index 3b7a31d4acda..095471d50d9f 100644 --- a/arch/powerpc/platforms/iseries/Makefile +++ b/arch/powerpc/platforms/iseries/Makefile | |||
@@ -1 +1 @@ | |||
obj-$(CONFIG_PPC_ISERIES) += hvcall.o hvlpconfig.o | obj-$(CONFIG_PPC_ISERIES) += hvcall.o hvlpconfig.o lpardata.o | ||
diff --git a/arch/ppc64/kernel/LparData.c b/arch/powerpc/platforms/iseries/lpardata.c index 0a9c23ca2f0c..87b7ad8ca465 100644 --- a/arch/ppc64/kernel/LparData.c +++ b/arch/powerpc/platforms/iseries/lpardata.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright 2001 Mike Corrigan, IBM Corp | 2 | * Copyright 2001 Mike Corrigan, IBM Corp |
3 | * | 3 | * |
4 | * This program is free software; you can redistribute it and/or | 4 | * This program is free software; you can redistribute it and/or |
@@ -29,8 +29,8 @@ | |||
29 | #include <asm/iSeries/ItSpCommArea.h> | 29 | #include <asm/iSeries/ItSpCommArea.h> |
30 | 30 | ||
31 | 31 | ||
32 | /* The HvReleaseData is the root of the information shared between | 32 | /* The HvReleaseData is the root of the information shared between |
33 | * the hypervisor and Linux. | 33 | * the hypervisor and Linux. |
34 | */ | 34 | */ |
35 | struct HvReleaseData hvReleaseData = { | 35 | struct HvReleaseData hvReleaseData = { |
36 | .xDesc = 0xc8a5d9c4, /* "HvRD" ebcdic */ | 36 | .xDesc = 0xc8a5d9c4, /* "HvRD" ebcdic */ |
@@ -79,7 +79,7 @@ extern void trap_0e_iSeries(void); | |||
79 | extern void performance_monitor_iSeries(void); | 79 | extern void performance_monitor_iSeries(void); |
80 | extern void data_access_slb_iSeries(void); | 80 | extern void data_access_slb_iSeries(void); |
81 | extern void instruction_access_slb_iSeries(void); | 81 | extern void instruction_access_slb_iSeries(void); |
82 | 82 | ||
83 | struct ItLpNaca itLpNaca = { | 83 | struct ItLpNaca itLpNaca = { |
84 | .xDesc = 0xd397d581, /* "LpNa" ebcdic */ | 84 | .xDesc = 0xd397d581, /* "LpNa" ebcdic */ |
85 | .xSize = 0x0400, /* size of ItLpNaca */ | 85 | .xSize = 0x0400, /* size of ItLpNaca */ |
@@ -106,7 +106,7 @@ struct ItLpNaca itLpNaca = { | |||
106 | .xLoadAreaChunks = 0, /* chunks for load area */ | 106 | .xLoadAreaChunks = 0, /* chunks for load area */ |
107 | .xPaseSysCallCRMask = 0, /* PASE mask */ | 107 | .xPaseSysCallCRMask = 0, /* PASE mask */ |
108 | .xSlicSegmentTablePtr = 0, /* seg table */ | 108 | .xSlicSegmentTablePtr = 0, /* seg table */ |
109 | .xOldLpQueue = { 0 }, /* Old LP Queue */ | 109 | .xOldLpQueue = { 0 }, /* Old LP Queue */ |
110 | .xInterruptHdlr = { | 110 | .xInterruptHdlr = { |
111 | (u64)system_reset_iSeries, /* 0x100 System Reset */ | 111 | (u64)system_reset_iSeries, /* 0x100 System Reset */ |
112 | (u64)machine_check_iSeries, /* 0x200 Machine Check */ | 112 | (u64)machine_check_iSeries, /* 0x200 Machine Check */ |
@@ -134,7 +134,7 @@ struct ItLpNaca itLpNaca = { | |||
134 | EXPORT_SYMBOL(itLpNaca); | 134 | EXPORT_SYMBOL(itLpNaca); |
135 | 135 | ||
136 | /* May be filled in by the hypervisor so cannot end up in the BSS */ | 136 | /* May be filled in by the hypervisor so cannot end up in the BSS */ |
137 | struct ItIplParmsReal xItIplParmsReal __attribute__((__section__(".data"))); | 137 | struct ItIplParmsReal xItIplParmsReal __attribute__((__section__(".data"))); |
138 | 138 | ||
139 | /* May be filled in by the hypervisor so cannot end up in the BSS */ | 139 | /* May be filled in by the hypervisor so cannot end up in the BSS */ |
140 | struct ItExtVpdPanel xItExtVpdPanel __attribute__((__section__(".data"))); | 140 | struct ItExtVpdPanel xItExtVpdPanel __attribute__((__section__(".data"))); |
@@ -151,7 +151,7 @@ struct IoHriProcessorVpd xIoHriProcessorVpd[maxPhysicalProcessors] = { | |||
151 | .xPVR = 0x3600 | 151 | .xPVR = 0x3600 |
152 | } | 152 | } |
153 | }; | 153 | }; |
154 | 154 | ||
155 | /* Space for Main Store Vpd 27,200 bytes */ | 155 | /* Space for Main Store Vpd 27,200 bytes */ |
156 | /* May be filled in by the hypervisor so cannot end up in the BSS */ | 156 | /* May be filled in by the hypervisor so cannot end up in the BSS */ |
157 | u64 xMsVpd[3400] __attribute__((__section__(".data"))); | 157 | u64 xMsVpd[3400] __attribute__((__section__(".data"))); |
@@ -197,7 +197,7 @@ struct ItVpdAreas itVpdAreas = { | |||
197 | 26992, /* 7 length of MS VPD */ | 197 | 26992, /* 7 length of MS VPD */ |
198 | 0, /* 8 */ | 198 | 0, /* 8 */ |
199 | sizeof(struct ItLpNaca),/* 9 length of LP Naca */ | 199 | sizeof(struct ItLpNaca),/* 9 length of LP Naca */ |
200 | 0, /* 10 */ | 200 | 0, /* 10 */ |
201 | 256, /* 11 length of Recovery Log Buf */ | 201 | 256, /* 11 length of Recovery Log Buf */ |
202 | sizeof(struct SpCommArea), /* 12 length of SP Comm Area */ | 202 | sizeof(struct SpCommArea), /* 12 length of SP Comm Area */ |
203 | 0,0,0, /* 13 - 15 */ | 203 | 0,0,0, /* 13 - 15 */ |
@@ -207,7 +207,7 @@ struct ItVpdAreas itVpdAreas = { | |||
207 | 0,0 /* 24 - 25 */ | 207 | 0,0 /* 24 - 25 */ |
208 | }, | 208 | }, |
209 | .xSlicVpdAdrs = { /* VPD addresses */ | 209 | .xSlicVpdAdrs = { /* VPD addresses */ |
210 | 0,0,0, /* 0 - 2 */ | 210 | 0,0,0, /* 0 - 2 */ |
211 | &xItExtVpdPanel, /* 3 Extended VPD */ | 211 | &xItExtVpdPanel, /* 3 Extended VPD */ |
212 | &paca[0], /* 4 first Paca */ | 212 | &paca[0], /* 4 first Paca */ |
213 | 0, /* 5 */ | 213 | 0, /* 5 */ |
diff --git a/arch/ppc64/kernel/Makefile b/arch/ppc64/kernel/Makefile index c80b6174231e..4d95f0d0137a 100644 --- a/arch/ppc64/kernel/Makefile +++ b/arch/ppc64/kernel/Makefile | |||
@@ -22,8 +22,7 @@ pci-obj-$(CONFIG_PPC_MULTIPLATFORM) += pci_dn.o pci_direct_iommu.o | |||
22 | 22 | ||
23 | obj-$(CONFIG_PCI) += pci.o pci_iommu.o iomap.o $(pci-obj-y) | 23 | obj-$(CONFIG_PCI) += pci.o pci_iommu.o iomap.o $(pci-obj-y) |
24 | 24 | ||
25 | obj-$(CONFIG_PPC_ISERIES) += LparData.o \ | 25 | obj-$(CONFIG_PPC_ISERIES) += iSeries_setup.o ItLpQueue.o hvCall.o \ |
26 | iSeries_setup.o ItLpQueue.o hvCall.o \ | ||
27 | mf.o HvLpEvent.o iSeries_proc.o iSeries_htab.o \ | 26 | mf.o HvLpEvent.o iSeries_proc.o iSeries_htab.o \ |
28 | iSeries_iommu.o | 27 | iSeries_iommu.o |
29 | 28 | ||
diff --git a/arch/ppc64/kernel/head.S b/arch/ppc64/kernel/head.S index eb526c480b6c..db0cd3587627 100644 --- a/arch/ppc64/kernel/head.S +++ b/arch/ppc64/kernel/head.S | |||
@@ -1253,7 +1253,7 @@ unrecov_slb: | |||
1253 | * | 1253 | * |
1254 | * On iSeries, the hypervisor must fill in at least one entry before | 1254 | * On iSeries, the hypervisor must fill in at least one entry before |
1255 | * we get control (with relocate on). The address is give to the hv | 1255 | * we get control (with relocate on). The address is give to the hv |
1256 | * as a page number (see xLparMap in LparData.c), so this must be at a | 1256 | * as a page number (see xLparMap in lpardata.c), so this must be at a |
1257 | * fixed address (the linker can't compute (u64)&initial_stab >> | 1257 | * fixed address (the linker can't compute (u64)&initial_stab >> |
1258 | * PAGE_SHIFT). | 1258 | * PAGE_SHIFT). |
1259 | */ | 1259 | */ |