diff options
Diffstat (limited to 'arch/powerpc/kernel/asm-offsets.c')
-rw-r--r-- | arch/powerpc/kernel/asm-offsets.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/asm-offsets.c b/arch/powerpc/kernel/asm-offsets.c index ec9228d687b0..92768d3006f7 100644 --- a/arch/powerpc/kernel/asm-offsets.c +++ b/arch/powerpc/kernel/asm-offsets.c | |||
@@ -52,6 +52,10 @@ | |||
52 | #include <asm/iseries/alpaca.h> | 52 | #include <asm/iseries/alpaca.h> |
53 | #endif | 53 | #endif |
54 | 54 | ||
55 | #if defined(CONFIG_BOOKE) || defined(CONFIG_40x) | ||
56 | #include "head_booke.h" | ||
57 | #endif | ||
58 | |||
55 | int main(void) | 59 | int main(void) |
56 | { | 60 | { |
57 | DEFINE(THREAD, offsetof(struct task_struct, thread)); | 61 | DEFINE(THREAD, offsetof(struct task_struct, thread)); |
@@ -74,6 +78,10 @@ int main(void) | |||
74 | DEFINE(THREAD_VSCR, offsetof(struct thread_struct, vscr)); | 78 | DEFINE(THREAD_VSCR, offsetof(struct thread_struct, vscr)); |
75 | DEFINE(THREAD_USED_VR, offsetof(struct thread_struct, used_vr)); | 79 | DEFINE(THREAD_USED_VR, offsetof(struct thread_struct, used_vr)); |
76 | #endif /* CONFIG_ALTIVEC */ | 80 | #endif /* CONFIG_ALTIVEC */ |
81 | #ifdef CONFIG_VSX | ||
82 | DEFINE(THREAD_VSR0, offsetof(struct thread_struct, fpr)); | ||
83 | DEFINE(THREAD_USED_VSR, offsetof(struct thread_struct, used_vsr)); | ||
84 | #endif /* CONFIG_VSX */ | ||
77 | #ifdef CONFIG_PPC64 | 85 | #ifdef CONFIG_PPC64 |
78 | DEFINE(KSP_VSID, offsetof(struct thread_struct, ksp_vsid)); | 86 | DEFINE(KSP_VSID, offsetof(struct thread_struct, ksp_vsid)); |
79 | #else /* CONFIG_PPC64 */ | 87 | #else /* CONFIG_PPC64 */ |
@@ -242,6 +250,25 @@ int main(void) | |||
242 | DEFINE(_SRR1, STACK_FRAME_OVERHEAD+sizeof(struct pt_regs)+8); | 250 | DEFINE(_SRR1, STACK_FRAME_OVERHEAD+sizeof(struct pt_regs)+8); |
243 | #endif /* CONFIG_PPC64 */ | 251 | #endif /* CONFIG_PPC64 */ |
244 | 252 | ||
253 | #if defined(CONFIG_BOOKE) || defined(CONFIG_40x) | ||
254 | DEFINE(EXC_LVL_SIZE, STACK_EXC_LVL_FRAME_SIZE); | ||
255 | DEFINE(MAS0, STACK_INT_FRAME_SIZE+offsetof(struct exception_regs, mas0)); | ||
256 | /* we overload MMUCR for 44x on MAS0 since they are mutually exclusive */ | ||
257 | DEFINE(MMUCR, STACK_INT_FRAME_SIZE+offsetof(struct exception_regs, mas0)); | ||
258 | DEFINE(MAS1, STACK_INT_FRAME_SIZE+offsetof(struct exception_regs, mas1)); | ||
259 | DEFINE(MAS2, STACK_INT_FRAME_SIZE+offsetof(struct exception_regs, mas2)); | ||
260 | DEFINE(MAS3, STACK_INT_FRAME_SIZE+offsetof(struct exception_regs, mas3)); | ||
261 | DEFINE(MAS6, STACK_INT_FRAME_SIZE+offsetof(struct exception_regs, mas6)); | ||
262 | DEFINE(MAS7, STACK_INT_FRAME_SIZE+offsetof(struct exception_regs, mas7)); | ||
263 | DEFINE(_SRR0, STACK_INT_FRAME_SIZE+offsetof(struct exception_regs, srr0)); | ||
264 | DEFINE(_SRR1, STACK_INT_FRAME_SIZE+offsetof(struct exception_regs, srr1)); | ||
265 | DEFINE(_CSRR0, STACK_INT_FRAME_SIZE+offsetof(struct exception_regs, csrr0)); | ||
266 | DEFINE(_CSRR1, STACK_INT_FRAME_SIZE+offsetof(struct exception_regs, csrr1)); | ||
267 | DEFINE(_DSRR0, STACK_INT_FRAME_SIZE+offsetof(struct exception_regs, dsrr0)); | ||
268 | DEFINE(_DSRR1, STACK_INT_FRAME_SIZE+offsetof(struct exception_regs, dsrr1)); | ||
269 | DEFINE(SAVED_KSP_LIMIT, STACK_INT_FRAME_SIZE+offsetof(struct exception_regs, saved_ksp_limit)); | ||
270 | #endif | ||
271 | |||
245 | DEFINE(CLONE_VM, CLONE_VM); | 272 | DEFINE(CLONE_VM, CLONE_VM); |
246 | DEFINE(CLONE_UNTRACED, CLONE_UNTRACED); | 273 | DEFINE(CLONE_UNTRACED, CLONE_UNTRACED); |
247 | 274 | ||