Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 91529
b: refs/heads/master
c: f9a5e6a
h: refs/heads/master
i:
  91527: 1db2745
v: v3
  • Loading branch information
Stephen Rothwell authored and Paul Mackerras committed Apr 15, 2008
1 parent 6ad48ef commit f2ab2d2
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 17 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 30ff2e87ed55e83b4eb436f5f14a7e49ff81ad99
refs/heads/master: f9a5e6a27d2aa1b37758abb031f37615ac367cca
2 changes: 0 additions & 2 deletions trunk/arch/powerpc/platforms/iseries/ipl_parms.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,4 @@ struct ItIplParmsReal {
u64 xRsvd13; // Reserved x38-x3F
};

extern struct ItIplParmsReal xItIplParmsReal;

#endif /* _ISERIES_IPL_PARMS_H */
14 changes: 7 additions & 7 deletions trunk/arch/powerpc/platforms/iseries/lpardata.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
/* The HvReleaseData is the root of the information shared between
* the hypervisor and Linux.
*/
struct HvReleaseData hvReleaseData = {
const struct HvReleaseData hvReleaseData = {
.xDesc = 0xc8a5d9c4, /* "HvRD" ebcdic */
.xSize = sizeof(struct HvReleaseData),
.xVpdAreasPtrOffset = offsetof(struct naca_struct, xItVpdAreas),
Expand Down Expand Up @@ -186,7 +186,7 @@ struct ItLpNaca itLpNaca = {
};

/* May be filled in by the hypervisor so cannot end up in the BSS */
struct ItIplParmsReal xItIplParmsReal __attribute__((__section__(".data")));
static struct ItIplParmsReal xItIplParmsReal __attribute__((__section__(".data")));

/* May be filled in by the hypervisor so cannot end up in the BSS */
struct ItExtVpdPanel xItExtVpdPanel __attribute__((__section__(".data")));
Expand All @@ -209,14 +209,14 @@ u64 xMsVpd[3400] __attribute__((__section__(".data")));

/* Space for Recovery Log Buffer */
/* May be filled in by the hypervisor so cannot end up in the BSS */
u64 xRecoveryLogBuffer[32] __attribute__((__section__(".data")));
static u64 xRecoveryLogBuffer[32] __attribute__((__section__(".data")));

struct SpCommArea xSpCommArea = {
static const struct SpCommArea xSpCommArea = {
.xDesc = 0xE2D7C3C2,
.xFormat = 1,
};

static struct ItLpRegSave iseries_reg_save[] = {
static const struct ItLpRegSave iseries_reg_save[] = {
[0 ... (NR_CPUS-1)] = {
.xDesc = 0xd397d9e2, /* "LpRS" */
.xSize = sizeof(struct ItLpRegSave),
Expand All @@ -229,7 +229,7 @@ static struct ItLpRegSave iseries_reg_save[] = {
.reg_save_ptr = &iseries_reg_save[number], \
}

struct alpaca alpaca[] = {
const struct alpaca alpaca[] = {
ALPACA_INIT( 0),
#if NR_CPUS > 1
ALPACA_INIT( 1), ALPACA_INIT( 2), ALPACA_INIT( 3),
Expand Down Expand Up @@ -265,7 +265,7 @@ struct alpaca alpaca[] = {
* the Naca via the HvReleaseData area. The HvReleaseData has the
* offset into the Naca of the pointer to the ItVpdAreas.
*/
struct ItVpdAreas itVpdAreas = {
const struct ItVpdAreas itVpdAreas = {
.xSlicDesc = 0xc9a3e5c1, /* "ItVA" */
.xSlicSize = sizeof(struct ItVpdAreas),
.xSlicVpdEntries = ItVpdMaxEntries, /* # VPD array entries */
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/powerpc/platforms/iseries/naca.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

struct naca_struct {
/* Kernel only data - undefined for user space */
void *xItVpdAreas; /* VPD Data 0x00 */
const void *xItVpdAreas; /* VPD Data 0x00 */
void *xRamDisk; /* iSeries ramdisk 0x08 */
u64 xRamDiskSize; /* In pages 0x10 */
};
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/powerpc/platforms/iseries/release_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ struct HvReleaseData {
char xRsvd3[20]; /* Reserved x2C-x3F */
};

extern struct HvReleaseData hvReleaseData;
extern const struct HvReleaseData hvReleaseData;

#endif /* _ISERIES_RELEASE_DATA_H */
2 changes: 0 additions & 2 deletions trunk/arch/powerpc/platforms/iseries/spcomm_area.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,4 @@ struct SpCommArea {
u8 xRsvd2[80]; // Reserved 030-07F
};

extern struct SpCommArea xSpCommArea;

#endif /* _ISERIES_SPCOMM_AREA_H */
4 changes: 2 additions & 2 deletions trunk/arch/powerpc/platforms/iseries/vpd_areas.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ struct ItVpdAreas {
u32 xPlicDmaLens[ItDmaMaxEntries];// Array of DMA lengths 080-0A7
u32 xPlicDmaToks[ItDmaMaxEntries];// Array of DMA tokens 0A8-0CF
u32 xSlicVpdLens[ItVpdMaxEntries];// Array of VPD lengths 0D0-12F
void *xSlicVpdAdrs[ItVpdMaxEntries];// Array of VPD buffers 130-1EF
const void *xSlicVpdAdrs[ItVpdMaxEntries];// Array of VPD buffers 130-1EF
};

extern struct ItVpdAreas itVpdAreas;
extern const struct ItVpdAreas itVpdAreas;

#endif /* _ISERIES_VPD_AREAS_H */
2 changes: 1 addition & 1 deletion trunk/include/asm-powerpc/iseries/alpaca.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/
struct alpaca {
struct lppaca *lppaca_ptr; /* Pointer to LpPaca for PLIC */
void *reg_save_ptr; /* Pointer to LpRegSave for PLIC */
const void *reg_save_ptr; /* Pointer to LpRegSave for PLIC */
};

#endif /* _ASM_POWERPC_ISERIES_ALPACA_H */

0 comments on commit f2ab2d2

Please sign in to comment.