diff options
Diffstat (limited to 'arch/microblaze/kernel/asm-offsets.c')
-rw-r--r-- | arch/microblaze/kernel/asm-offsets.c | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/arch/microblaze/kernel/asm-offsets.c b/arch/microblaze/kernel/asm-offsets.c index aabd9e9423a6..7bc7b68f97db 100644 --- a/arch/microblaze/kernel/asm-offsets.c +++ b/arch/microblaze/kernel/asm-offsets.c | |||
@@ -1,4 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (C) 2007-2009 Michal Simek <monstr@monstr.eu> | ||
2 | * Copyright (C) 2007-2009 PetaLogix | 3 | * Copyright (C) 2007-2009 PetaLogix |
3 | * Copyright (C) 2006 Atmark Techno, Inc. | 4 | * Copyright (C) 2006 Atmark Techno, Inc. |
4 | * | 5 | * |
@@ -68,16 +69,26 @@ int main(int argc, char *argv[]) | |||
68 | 69 | ||
69 | /* struct task_struct */ | 70 | /* struct task_struct */ |
70 | DEFINE(TS_THREAD_INFO, offsetof(struct task_struct, stack)); | 71 | DEFINE(TS_THREAD_INFO, offsetof(struct task_struct, stack)); |
72 | #ifdef CONFIG_MMU | ||
73 | DEFINE(TASK_STATE, offsetof(struct task_struct, state)); | ||
74 | DEFINE(TASK_FLAGS, offsetof(struct task_struct, flags)); | ||
75 | DEFINE(TASK_PTRACE, offsetof(struct task_struct, ptrace)); | ||
76 | DEFINE(TASK_BLOCKED, offsetof(struct task_struct, blocked)); | ||
77 | DEFINE(TASK_MM, offsetof(struct task_struct, mm)); | ||
78 | DEFINE(TASK_ACTIVE_MM, offsetof(struct task_struct, active_mm)); | ||
79 | DEFINE(TASK_PID, offsetof(struct task_struct, pid)); | ||
80 | DEFINE(TASK_THREAD, offsetof(struct task_struct, thread)); | ||
81 | DEFINE(THREAD_KSP, offsetof(struct thread_struct, ksp)); | ||
82 | BLANK(); | ||
83 | |||
84 | DEFINE(PGDIR, offsetof(struct thread_struct, pgdir)); | ||
85 | BLANK(); | ||
86 | #endif | ||
71 | 87 | ||
72 | /* struct thread_info */ | 88 | /* struct thread_info */ |
73 | DEFINE(TI_TASK, offsetof(struct thread_info, task)); | 89 | DEFINE(TI_TASK, offsetof(struct thread_info, task)); |
74 | DEFINE(TI_EXEC_DOMAIN, offsetof(struct thread_info, exec_domain)); | ||
75 | DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); | 90 | DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); |
76 | DEFINE(TI_STATUS, offsetof(struct thread_info, status)); | ||
77 | DEFINE(TI_CPU, offsetof(struct thread_info, cpu)); | ||
78 | DEFINE(TI_PRE_COUNT, offsetof(struct thread_info, preempt_count)); | ||
79 | DEFINE(TI_ADDR_LIMIT, offsetof(struct thread_info, addr_limit)); | 91 | DEFINE(TI_ADDR_LIMIT, offsetof(struct thread_info, addr_limit)); |
80 | DEFINE(TI_RESTART_BLOCK, offsetof(struct thread_info, restart_block)); | ||
81 | DEFINE(TI_CPU_CONTEXT, offsetof(struct thread_info, cpu_context)); | 92 | DEFINE(TI_CPU_CONTEXT, offsetof(struct thread_info, cpu_context)); |
82 | BLANK(); | 93 | BLANK(); |
83 | 94 | ||