aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68k/kernel/asm-offsets.c
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2012-03-04 19:47:13 -0500
committerGlenn Elliott <gelliott@cs.unc.edu>2012-03-04 19:47:13 -0500
commitc71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch)
treeecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /arch/m68k/kernel/asm-offsets.c
parentea53c912f8a86a8567697115b6a0d8152beee5c8 (diff)
parent6a00f206debf8a5c8899055726ad127dbeeed098 (diff)
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts: litmus/sched_cedf.c
Diffstat (limited to 'arch/m68k/kernel/asm-offsets.c')
-rw-r--r--arch/m68k/kernel/asm-offsets.c35
1 files changed, 14 insertions, 21 deletions
diff --git a/arch/m68k/kernel/asm-offsets.c b/arch/m68k/kernel/asm-offsets.c
index 73e5e581245b..983fed9d469b 100644
--- a/arch/m68k/kernel/asm-offsets.c
+++ b/arch/m68k/kernel/asm-offsets.c
@@ -22,16 +22,10 @@
22int main(void) 22int main(void)
23{ 23{
24 /* offsets into the task struct */ 24 /* offsets into the task struct */
25 DEFINE(TASK_STATE, offsetof(struct task_struct, state));
26 DEFINE(TASK_FLAGS, offsetof(struct task_struct, flags));
27 DEFINE(TASK_PTRACE, offsetof(struct task_struct, ptrace));
28 DEFINE(TASK_THREAD, offsetof(struct task_struct, thread)); 25 DEFINE(TASK_THREAD, offsetof(struct task_struct, thread));
29 DEFINE(TASK_INFO, offsetof(struct task_struct, thread.info));
30 DEFINE(TASK_MM, offsetof(struct task_struct, mm)); 26 DEFINE(TASK_MM, offsetof(struct task_struct, mm));
31 DEFINE(TASK_ACTIVE_MM, offsetof(struct task_struct, active_mm)); 27 DEFINE(TASK_INFO, offsetof(struct task_struct, thread.info));
32#ifdef CONFIG_MMU
33 DEFINE(TASK_TINFO, offsetof(struct task_struct, thread.info)); 28 DEFINE(TASK_TINFO, offsetof(struct task_struct, thread.info));
34#endif
35 29
36 /* offsets into the thread struct */ 30 /* offsets into the thread struct */
37 DEFINE(THREAD_KSP, offsetof(struct thread_struct, ksp)); 31 DEFINE(THREAD_KSP, offsetof(struct thread_struct, ksp));
@@ -61,20 +55,24 @@ int main(void)
61 DEFINE(PT_OFF_A2, offsetof(struct pt_regs, a2)); 55 DEFINE(PT_OFF_A2, offsetof(struct pt_regs, a2));
62 DEFINE(PT_OFF_PC, offsetof(struct pt_regs, pc)); 56 DEFINE(PT_OFF_PC, offsetof(struct pt_regs, pc));
63 DEFINE(PT_OFF_SR, offsetof(struct pt_regs, sr)); 57 DEFINE(PT_OFF_SR, offsetof(struct pt_regs, sr));
58
64 /* bitfields are a bit difficult */ 59 /* bitfields are a bit difficult */
60#ifdef CONFIG_COLDFIRE
61 DEFINE(PT_OFF_FORMATVEC, offsetof(struct pt_regs, sr) - 2);
62#else
65 DEFINE(PT_OFF_FORMATVEC, offsetof(struct pt_regs, pc) + 4); 63 DEFINE(PT_OFF_FORMATVEC, offsetof(struct pt_regs, pc) + 4);
66 64#endif
67 /* offsets into the irq_handler struct */
68 DEFINE(IRQ_HANDLER, offsetof(struct irq_node, handler));
69 DEFINE(IRQ_DEVID, offsetof(struct irq_node, dev_id));
70 DEFINE(IRQ_NEXT, offsetof(struct irq_node, next));
71
72 /* offsets into the kernel_stat struct */
73 DEFINE(STAT_IRQ, offsetof(struct kernel_stat, irqs));
74 65
75 /* offsets into the irq_cpustat_t struct */ 66 /* offsets into the irq_cpustat_t struct */
76 DEFINE(CPUSTAT_SOFTIRQ_PENDING, offsetof(irq_cpustat_t, __softirq_pending)); 67 DEFINE(CPUSTAT_SOFTIRQ_PENDING, offsetof(irq_cpustat_t, __softirq_pending));
77 68
69 /* signal defines */
70 DEFINE(LSIGSEGV, SIGSEGV);
71 DEFINE(LSEGV_MAPERR, SEGV_MAPERR);
72 DEFINE(LSIGTRAP, SIGTRAP);
73 DEFINE(LTRAP_TRACE, TRAP_TRACE);
74
75#ifdef CONFIG_MMU
78 /* offsets into the bi_record struct */ 76 /* offsets into the bi_record struct */
79 DEFINE(BIR_TAG, offsetof(struct bi_record, tag)); 77 DEFINE(BIR_TAG, offsetof(struct bi_record, tag));
80 DEFINE(BIR_SIZE, offsetof(struct bi_record, size)); 78 DEFINE(BIR_SIZE, offsetof(struct bi_record, size));
@@ -88,12 +86,6 @@ int main(void)
88 DEFINE(FONT_DESC_DATA, offsetof(struct font_desc, data)); 86 DEFINE(FONT_DESC_DATA, offsetof(struct font_desc, data));
89 DEFINE(FONT_DESC_PREF, offsetof(struct font_desc, pref)); 87 DEFINE(FONT_DESC_PREF, offsetof(struct font_desc, pref));
90 88
91 /* signal defines */
92 DEFINE(LSIGSEGV, SIGSEGV);
93 DEFINE(LSEGV_MAPERR, SEGV_MAPERR);
94 DEFINE(LSIGTRAP, SIGTRAP);
95 DEFINE(LTRAP_TRACE, TRAP_TRACE);
96
97 /* offsets into the custom struct */ 89 /* offsets into the custom struct */
98 DEFINE(CUSTOMBASE, &amiga_custom); 90 DEFINE(CUSTOMBASE, &amiga_custom);
99 DEFINE(C_INTENAR, offsetof(struct CUSTOM, intenar)); 91 DEFINE(C_INTENAR, offsetof(struct CUSTOM, intenar));
@@ -107,6 +99,7 @@ int main(void)
107 DEFINE(CIABBASE, &ciab); 99 DEFINE(CIABBASE, &ciab);
108 DEFINE(C_PRA, offsetof(struct CIA, pra)); 100 DEFINE(C_PRA, offsetof(struct CIA, pra));
109 DEFINE(ZTWOBASE, zTwoBase); 101 DEFINE(ZTWOBASE, zTwoBase);
102#endif
110 103
111 return 0; 104 return 0;
112} 105}