diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2008-04-10 02:44:30 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-04-15 07:21:25 -0400 |
commit | f9a5e6a27d2aa1b37758abb031f37615ac367cca (patch) | |
tree | 7902aefe6388625fcedca42484fa59345e95e793 /arch/powerpc/platforms/iseries/lpardata.c | |
parent | 30ff2e87ed55e83b4eb436f5f14a7e49ff81ad99 (diff) |
[POWERPC] iSeries: Localise and constify some iSeries data
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/iseries/lpardata.c')
-rw-r--r-- | arch/powerpc/platforms/iseries/lpardata.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/powerpc/platforms/iseries/lpardata.c b/arch/powerpc/platforms/iseries/lpardata.c index 2331d97e49f3..98bd2d37038a 100644 --- a/arch/powerpc/platforms/iseries/lpardata.c +++ b/arch/powerpc/platforms/iseries/lpardata.c | |||
@@ -31,7 +31,7 @@ | |||
31 | /* The HvReleaseData is the root of the information shared between | 31 | /* The HvReleaseData is the root of the information shared between |
32 | * the hypervisor and Linux. | 32 | * the hypervisor and Linux. |
33 | */ | 33 | */ |
34 | struct HvReleaseData hvReleaseData = { | 34 | const struct HvReleaseData hvReleaseData = { |
35 | .xDesc = 0xc8a5d9c4, /* "HvRD" ebcdic */ | 35 | .xDesc = 0xc8a5d9c4, /* "HvRD" ebcdic */ |
36 | .xSize = sizeof(struct HvReleaseData), | 36 | .xSize = sizeof(struct HvReleaseData), |
37 | .xVpdAreasPtrOffset = offsetof(struct naca_struct, xItVpdAreas), | 37 | .xVpdAreasPtrOffset = offsetof(struct naca_struct, xItVpdAreas), |
@@ -186,7 +186,7 @@ struct ItLpNaca itLpNaca = { | |||
186 | }; | 186 | }; |
187 | 187 | ||
188 | /* May be filled in by the hypervisor so cannot end up in the BSS */ | 188 | /* May be filled in by the hypervisor so cannot end up in the BSS */ |
189 | struct ItIplParmsReal xItIplParmsReal __attribute__((__section__(".data"))); | 189 | static struct ItIplParmsReal xItIplParmsReal __attribute__((__section__(".data"))); |
190 | 190 | ||
191 | /* May be filled in by the hypervisor so cannot end up in the BSS */ | 191 | /* May be filled in by the hypervisor so cannot end up in the BSS */ |
192 | struct ItExtVpdPanel xItExtVpdPanel __attribute__((__section__(".data"))); | 192 | struct ItExtVpdPanel xItExtVpdPanel __attribute__((__section__(".data"))); |
@@ -209,14 +209,14 @@ u64 xMsVpd[3400] __attribute__((__section__(".data"))); | |||
209 | 209 | ||
210 | /* Space for Recovery Log Buffer */ | 210 | /* Space for Recovery Log Buffer */ |
211 | /* May be filled in by the hypervisor so cannot end up in the BSS */ | 211 | /* May be filled in by the hypervisor so cannot end up in the BSS */ |
212 | u64 xRecoveryLogBuffer[32] __attribute__((__section__(".data"))); | 212 | static u64 xRecoveryLogBuffer[32] __attribute__((__section__(".data"))); |
213 | 213 | ||
214 | struct SpCommArea xSpCommArea = { | 214 | static const struct SpCommArea xSpCommArea = { |
215 | .xDesc = 0xE2D7C3C2, | 215 | .xDesc = 0xE2D7C3C2, |
216 | .xFormat = 1, | 216 | .xFormat = 1, |
217 | }; | 217 | }; |
218 | 218 | ||
219 | static struct ItLpRegSave iseries_reg_save[] = { | 219 | static const struct ItLpRegSave iseries_reg_save[] = { |
220 | [0 ... (NR_CPUS-1)] = { | 220 | [0 ... (NR_CPUS-1)] = { |
221 | .xDesc = 0xd397d9e2, /* "LpRS" */ | 221 | .xDesc = 0xd397d9e2, /* "LpRS" */ |
222 | .xSize = sizeof(struct ItLpRegSave), | 222 | .xSize = sizeof(struct ItLpRegSave), |
@@ -229,7 +229,7 @@ static struct ItLpRegSave iseries_reg_save[] = { | |||
229 | .reg_save_ptr = &iseries_reg_save[number], \ | 229 | .reg_save_ptr = &iseries_reg_save[number], \ |
230 | } | 230 | } |
231 | 231 | ||
232 | struct alpaca alpaca[] = { | 232 | const struct alpaca alpaca[] = { |
233 | ALPACA_INIT( 0), | 233 | ALPACA_INIT( 0), |
234 | #if NR_CPUS > 1 | 234 | #if NR_CPUS > 1 |
235 | ALPACA_INIT( 1), ALPACA_INIT( 2), ALPACA_INIT( 3), | 235 | ALPACA_INIT( 1), ALPACA_INIT( 2), ALPACA_INIT( 3), |
@@ -265,7 +265,7 @@ struct alpaca alpaca[] = { | |||
265 | * the Naca via the HvReleaseData area. The HvReleaseData has the | 265 | * the Naca via the HvReleaseData area. The HvReleaseData has the |
266 | * offset into the Naca of the pointer to the ItVpdAreas. | 266 | * offset into the Naca of the pointer to the ItVpdAreas. |
267 | */ | 267 | */ |
268 | struct ItVpdAreas itVpdAreas = { | 268 | const struct ItVpdAreas itVpdAreas = { |
269 | .xSlicDesc = 0xc9a3e5c1, /* "ItVA" */ | 269 | .xSlicDesc = 0xc9a3e5c1, /* "ItVA" */ |
270 | .xSlicSize = sizeof(struct ItVpdAreas), | 270 | .xSlicSize = sizeof(struct ItVpdAreas), |
271 | .xSlicVpdEntries = ItVpdMaxEntries, /* # VPD array entries */ | 271 | .xSlicVpdEntries = ItVpdMaxEntries, /* # VPD array entries */ |