diff options
Diffstat (limited to 'arch/m68knommu/kernel/asm-offsets.c')
-rw-r--r-- | arch/m68knommu/kernel/asm-offsets.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/arch/m68knommu/kernel/asm-offsets.c b/arch/m68knommu/kernel/asm-offsets.c index 9a8876f715d8..ffe02f41ad46 100644 --- a/arch/m68knommu/kernel/asm-offsets.c +++ b/arch/m68knommu/kernel/asm-offsets.c | |||
@@ -21,14 +21,8 @@ | |||
21 | int main(void) | 21 | int main(void) |
22 | { | 22 | { |
23 | /* offsets into the task struct */ | 23 | /* offsets into the task struct */ |
24 | DEFINE(TASK_STATE, offsetof(struct task_struct, state)); | ||
25 | DEFINE(TASK_FLAGS, offsetof(struct task_struct, flags)); | ||
26 | DEFINE(TASK_PTRACE, offsetof(struct task_struct, ptrace)); | ||
27 | DEFINE(TASK_BLOCKED, offsetof(struct task_struct, blocked)); | ||
28 | DEFINE(TASK_THREAD, offsetof(struct task_struct, thread)); | 24 | DEFINE(TASK_THREAD, offsetof(struct task_struct, thread)); |
29 | DEFINE(TASK_THREAD_INFO, offsetof(struct task_struct, stack)); | ||
30 | DEFINE(TASK_MM, offsetof(struct task_struct, mm)); | 25 | DEFINE(TASK_MM, offsetof(struct task_struct, mm)); |
31 | DEFINE(TASK_ACTIVE_MM, offsetof(struct task_struct, active_mm)); | ||
32 | 26 | ||
33 | /* offsets into the irq_cpustat_t struct */ | 27 | /* offsets into the irq_cpustat_t struct */ |
34 | DEFINE(CPUSTAT_SOFTIRQ_PENDING, offsetof(irq_cpustat_t, __softirq_pending)); | 28 | DEFINE(CPUSTAT_SOFTIRQ_PENDING, offsetof(irq_cpustat_t, __softirq_pending)); |
@@ -63,7 +57,7 @@ int main(void) | |||
63 | DEFINE(PT_OFF_FORMATVEC, offsetof(struct pt_regs, sr) - 2); | 57 | DEFINE(PT_OFF_FORMATVEC, offsetof(struct pt_regs, sr) - 2); |
64 | #else | 58 | #else |
65 | /* bitfields are a bit difficult */ | 59 | /* bitfields are a bit difficult */ |
66 | DEFINE(PT_OFF_VECTOR, offsetof(struct pt_regs, pc) + 4); | 60 | DEFINE(PT_OFF_FORMATVEC, offsetof(struct pt_regs, pc) + 4); |
67 | #endif | 61 | #endif |
68 | 62 | ||
69 | /* signal defines */ | 63 | /* signal defines */ |
@@ -74,14 +68,9 @@ int main(void) | |||
74 | 68 | ||
75 | DEFINE(PT_PTRACED, PT_PTRACED); | 69 | DEFINE(PT_PTRACED, PT_PTRACED); |
76 | 70 | ||
77 | DEFINE(THREAD_SIZE, THREAD_SIZE); | ||
78 | |||
79 | /* Offsets in thread_info structure */ | 71 | /* Offsets in thread_info structure */ |
80 | DEFINE(TI_TASK, offsetof(struct thread_info, task)); | ||
81 | DEFINE(TI_EXECDOMAIN, offsetof(struct thread_info, exec_domain)); | ||
82 | DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); | 72 | DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); |
83 | DEFINE(TI_PREEMPTCOUNT, offsetof(struct thread_info, preempt_count)); | 73 | DEFINE(TI_PREEMPTCOUNT, offsetof(struct thread_info, preempt_count)); |
84 | DEFINE(TI_CPU, offsetof(struct thread_info, cpu)); | ||
85 | 74 | ||
86 | return 0; | 75 | return 0; |
87 | } | 76 | } |