diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2008-04-10 02:43:47 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-04-15 07:21:25 -0400 |
commit | 30ff2e87ed55e83b4eb436f5f14a7e49ff81ad99 (patch) | |
tree | 9e1af946cb836c9af2059d4f8b41aa89dd3b780e /include/asm-powerpc | |
parent | 3eb9cf076180ed2003db77bd2c33ac4ed0211089 (diff) |
[POWERPC] iSeries: Make iseries_reg_save private to iSeries
Now that we have the alpaca, the reg_save_ptr is no longer needed in the
paca. Eradicate all global uses of it and make it static in the iSeries
lpardata.c
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r-- | include/asm-powerpc/iseries/it_lp_reg_save.h | 85 | ||||
-rw-r--r-- | include/asm-powerpc/paca.h | 12 |
2 files changed, 1 insertions, 96 deletions
diff --git a/include/asm-powerpc/iseries/it_lp_reg_save.h b/include/asm-powerpc/iseries/it_lp_reg_save.h deleted file mode 100644 index 5403b756f654..000000000000 --- a/include/asm-powerpc/iseries/it_lp_reg_save.h +++ /dev/null | |||
@@ -1,85 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2001 Mike Corrigan IBM Corporation | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License as published by | ||
6 | * the Free Software Foundation; either version 2 of the License, or | ||
7 | * (at your option) any later version. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | * GNU General Public License for more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU General Public License | ||
15 | * along with this program; if not, write to the Free Software | ||
16 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
17 | */ | ||
18 | #ifndef _ASM_POWERPC_ISERIES_IT_LP_REG_SAVE_H | ||
19 | #define _ASM_POWERPC_ISERIES_IT_LP_REG_SAVE_H | ||
20 | |||
21 | /* | ||
22 | * This control block contains the data that is shared between PLIC | ||
23 | * and the OS | ||
24 | */ | ||
25 | |||
26 | struct ItLpRegSave { | ||
27 | u32 xDesc; // Eye catcher "LpRS" ebcdic 000-003 | ||
28 | u16 xSize; // Size of this class 004-005 | ||
29 | u8 xInUse; // Area is live 006-007 | ||
30 | u8 xRsvd1[9]; // Reserved 007-00F | ||
31 | |||
32 | u8 xFixedRegSave[352]; // Fixed Register Save Area 010-16F | ||
33 | u32 xCTRL; // Control Register 170-173 | ||
34 | u32 xDEC; // Decrementer 174-177 | ||
35 | u32 xFPSCR; // FP Status and Control Reg 178-17B | ||
36 | u32 xPVR; // Processor Version Number 17C-17F | ||
37 | |||
38 | u64 xMMCR0; // Monitor Mode Control Reg 0 180-187 | ||
39 | u32 xPMC1; // Perf Monitor Counter 1 188-18B | ||
40 | u32 xPMC2; // Perf Monitor Counter 2 18C-18F | ||
41 | u32 xPMC3; // Perf Monitor Counter 3 190-193 | ||
42 | u32 xPMC4; // Perf Monitor Counter 4 194-197 | ||
43 | u32 xPIR; // Processor ID Reg 198-19B | ||
44 | |||
45 | u32 xMMCR1; // Monitor Mode Control Reg 1 19C-19F | ||
46 | u32 xMMCRA; // Monitor Mode Control Reg A 1A0-1A3 | ||
47 | u32 xPMC5; // Perf Monitor Counter 5 1A4-1A7 | ||
48 | u32 xPMC6; // Perf Monitor Counter 6 1A8-1AB | ||
49 | u32 xPMC7; // Perf Monitor Counter 7 1AC-1AF | ||
50 | u32 xPMC8; // Perf Monitor Counter 8 1B0-1B3 | ||
51 | u32 xTSC; // Thread Switch Control 1B4-1B7 | ||
52 | u32 xTST; // Thread Switch Timeout 1B8-1BB | ||
53 | u32 xRsvd; // Reserved 1BC-1BF | ||
54 | |||
55 | u64 xACCR; // Address Compare Control Reg 1C0-1C7 | ||
56 | u64 xIMR; // Instruction Match Register 1C8-1CF | ||
57 | u64 xSDR1; // Storage Description Reg 1 1D0-1D7 | ||
58 | u64 xSPRG0; // Special Purpose Reg General0 1D8-1DF | ||
59 | u64 xSPRG1; // Special Purpose Reg General1 1E0-1E7 | ||
60 | u64 xSPRG2; // Special Purpose Reg General2 1E8-1EF | ||
61 | u64 xSPRG3; // Special Purpose Reg General3 1F0-1F7 | ||
62 | u64 xTB; // Time Base Register 1F8-1FF | ||
63 | |||
64 | u64 xFPR[32]; // Floating Point Registers 200-2FF | ||
65 | |||
66 | u64 xMSR; // Machine State Register 300-307 | ||
67 | u64 xNIA; // Next Instruction Address 308-30F | ||
68 | |||
69 | u64 xDABR; // Data Address Breakpoint Reg 310-317 | ||
70 | u64 xIABR; // Inst Address Breakpoint Reg 318-31F | ||
71 | |||
72 | u64 xHID0; // HW Implementation Dependent0 320-327 | ||
73 | |||
74 | u64 xHID4; // HW Implementation Dependent4 328-32F | ||
75 | u64 xSCOMd; // SCON Data Reg (SPRG4) 330-337 | ||
76 | u64 xSCOMc; // SCON Command Reg (SPRG5) 338-33F | ||
77 | u64 xSDAR; // Sample Data Address Register 340-347 | ||
78 | u64 xSIAR; // Sample Inst Address Register 348-34F | ||
79 | |||
80 | u8 xRsvd3[176]; // Reserved 350-3FF | ||
81 | }; | ||
82 | |||
83 | extern struct ItLpRegSave iseries_reg_save[]; | ||
84 | |||
85 | #endif /* _ASM_POWERPC_ISERIES_IT_LP_REG_SAVE_H */ | ||
diff --git a/include/asm-powerpc/paca.h b/include/asm-powerpc/paca.h index 748b35ab37b5..eb61b9c1edfd 100644 --- a/include/asm-powerpc/paca.h +++ b/include/asm-powerpc/paca.h | |||
@@ -42,10 +42,7 @@ struct task_struct; | |||
42 | * Defines the layout of the paca. | 42 | * Defines the layout of the paca. |
43 | * | 43 | * |
44 | * This structure is not directly accessed by firmware or the service | 44 | * This structure is not directly accessed by firmware or the service |
45 | * processor except for the first two pointers that point to the | 45 | * processor. |
46 | * lppaca area and the ItLpRegSave area for this CPU. The lppaca | ||
47 | * object is currently contained within the PACA but it doesn't need | ||
48 | * to be. | ||
49 | */ | 46 | */ |
50 | struct paca_struct { | 47 | struct paca_struct { |
51 | /* | 48 | /* |
@@ -55,14 +52,7 @@ struct paca_struct { | |||
55 | * avoid cacheline bouncing. | 52 | * avoid cacheline bouncing. |
56 | */ | 53 | */ |
57 | 54 | ||
58 | /* | ||
59 | * MAGIC: These first two pointers can't be moved - they're | ||
60 | * accessed by the firmware | ||
61 | */ | ||
62 | struct lppaca *lppaca_ptr; /* Pointer to LpPaca for PLIC */ | 55 | struct lppaca *lppaca_ptr; /* Pointer to LpPaca for PLIC */ |
63 | #ifdef CONFIG_PPC_ISERIES | ||
64 | void *reg_save_ptr; /* Pointer to LpRegSave for PLIC */ | ||
65 | #endif /* CONFIG_PPC_ISERIES */ | ||
66 | 56 | ||
67 | /* | 57 | /* |
68 | * MAGIC: the spinlock functions in arch/powerpc/lib/locks.c | 58 | * MAGIC: the spinlock functions in arch/powerpc/lib/locks.c |