aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/asm-offsets.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc/kernel/asm-offsets.c')
-rw-r--r--arch/sparc/kernel/asm-offsets.c19
1 files changed, 16 insertions, 3 deletions
diff --git a/arch/sparc/kernel/asm-offsets.c b/arch/sparc/kernel/asm-offsets.c
index b5bb99ed892c..68f7e1118e9b 100644
--- a/arch/sparc/kernel/asm-offsets.c
+++ b/arch/sparc/kernel/asm-offsets.c
@@ -14,15 +14,28 @@
14// #include <linux/mm.h> 14// #include <linux/mm.h>
15#include <linux/kbuild.h> 15#include <linux/kbuild.h>
16 16
17int foo(void) 17#ifdef CONFIG_SPARC32
18int sparc32_foo(void)
18{ 19{
19 DEFINE(AOFF_task_thread, offsetof(struct task_struct, thread));
20 BLANK();
21 DEFINE(AOFF_thread_fork_kpsr, 20 DEFINE(AOFF_thread_fork_kpsr,
22 offsetof(struct thread_struct, fork_kpsr)); 21 offsetof(struct thread_struct, fork_kpsr));
22 return 0;
23}
24#else
25int sparc64_foo(void)
26{
27 return 0;
28}
29#endif
30
31int foo(void)
32{
33 BLANK();
34 DEFINE(AOFF_task_thread, offsetof(struct task_struct, thread));
23 BLANK(); 35 BLANK();
24 DEFINE(AOFF_mm_context, offsetof(struct mm_struct, context)); 36 DEFINE(AOFF_mm_context, offsetof(struct mm_struct, context));
25 37
26 /* DEFINE(NUM_USER_SEGMENTS, TASK_SIZE>>28); */ 38 /* DEFINE(NUM_USER_SEGMENTS, TASK_SIZE>>28); */
27 return 0; 39 return 0;
28} 40}
41