diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2005-11-24 00:34:45 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-01-08 22:50:32 -0500 |
commit | 1888e7b51c0cb5db49911b59cb758ad2c7a530f2 (patch) | |
tree | dab7d7cbb895658845dce88f1b2bacc0f7238e50 /include/asm-powerpc/paca.h | |
parent | 456752f7505ef8f580ffd157558e661da2767d99 (diff) |
[PATCH] powerpc: Remove ItLpRegSave area from the paca
On iSeries, the paca contains, amongst other things an ItLpRegSave
structure used by the hypervisor to save registers. The hypervisor
locates this area through a pointer at the beginning of the paca, so
the structure itself can be located elsewhere. This patch moves the
reg_save area out into its own array. This reduces the amount of
iSeries specific gunk which is visible to general powerpc code via
paca.h
Built and booted on POWER5 LPAR and iSeries RS64.
Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc/paca.h')
-rw-r--r-- | include/asm-powerpc/paca.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/include/asm-powerpc/paca.h b/include/asm-powerpc/paca.h index 92c765c35bd0..73693db546b3 100644 --- a/include/asm-powerpc/paca.h +++ b/include/asm-powerpc/paca.h | |||
@@ -18,7 +18,6 @@ | |||
18 | #include <linux/config.h> | 18 | #include <linux/config.h> |
19 | #include <asm/types.h> | 19 | #include <asm/types.h> |
20 | #include <asm/lppaca.h> | 20 | #include <asm/lppaca.h> |
21 | #include <asm/iseries/it_lp_reg_save.h> | ||
22 | #include <asm/mmu.h> | 21 | #include <asm/mmu.h> |
23 | 22 | ||
24 | register struct paca_struct *local_paca asm("r13"); | 23 | register struct paca_struct *local_paca asm("r13"); |
@@ -31,9 +30,9 @@ struct task_struct; | |||
31 | * | 30 | * |
32 | * This structure is not directly accessed by firmware or the service | 31 | * This structure is not directly accessed by firmware or the service |
33 | * processor except for the first two pointers that point to the | 32 | * processor except for the first two pointers that point to the |
34 | * lppaca area and the ItLpRegSave area for this CPU. Both the | 33 | * lppaca area and the ItLpRegSave area for this CPU. The lppaca |
35 | * lppaca and ItLpRegSave objects are currently contained within the | 34 | * object is currently contained within the PACA but it doesn't need |
36 | * PACA but they do not need to be. | 35 | * to be. |
37 | */ | 36 | */ |
38 | struct paca_struct { | 37 | struct paca_struct { |
39 | /* | 38 | /* |
@@ -48,7 +47,9 @@ struct paca_struct { | |||
48 | * accessed by the firmware | 47 | * accessed by the firmware |
49 | */ | 48 | */ |
50 | struct lppaca *lppaca_ptr; /* Pointer to LpPaca for PLIC */ | 49 | struct lppaca *lppaca_ptr; /* Pointer to LpPaca for PLIC */ |
51 | struct ItLpRegSave *reg_save_ptr; /* Pointer to LpRegSave for PLIC */ | 50 | #ifdef CONFIG_PPC_ISERIES |
51 | void *reg_save_ptr; /* Pointer to LpRegSave for PLIC */ | ||
52 | #endif /* CONFIG_PPC_ISERIES */ | ||
52 | 53 | ||
53 | /* | 54 | /* |
54 | * MAGIC: the spinlock functions in arch/ppc64/lib/locks.c | 55 | * MAGIC: the spinlock functions in arch/ppc64/lib/locks.c |
@@ -110,9 +111,6 @@ struct paca_struct { | |||
110 | * cross a page boundary. | 111 | * cross a page boundary. |
111 | */ | 112 | */ |
112 | struct lppaca lppaca __attribute__((__aligned__(0x400))); | 113 | struct lppaca lppaca __attribute__((__aligned__(0x400))); |
113 | #ifdef CONFIG_PPC_ISERIES | ||
114 | struct ItLpRegSave reg_save; | ||
115 | #endif | ||
116 | }; | 114 | }; |
117 | 115 | ||
118 | extern struct paca_struct paca[]; | 116 | extern struct paca_struct paca[]; |