diff options
author | Richard Weinberger <richard@nod.at> | 2015-04-03 18:56:16 +0200 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2015-04-12 20:58:24 +0200 |
commit | ede45dd302385007b7ee83148753654ab8453167 (patch) | |
tree | 1c73acbbe71e3944f4ece333ed8d861d3792663a /arch/blackfin/kernel/asm-offsets.c | |
parent | arm64: Remove signal translation and exec_domain (diff) | |
download | linux-ede45dd302385007b7ee83148753654ab8453167.tar.xz linux-ede45dd302385007b7ee83148753654ab8453167.zip |
blackfin: Autogenerate offsets in struct thread_info
Maintaining offsets by hand is no fun.
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/blackfin/kernel/asm-offsets.c')
-rw-r--r-- | arch/blackfin/kernel/asm-offsets.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/blackfin/kernel/asm-offsets.c b/arch/blackfin/kernel/asm-offsets.c index 37fcae950216..486560aea050 100644 --- a/arch/blackfin/kernel/asm-offsets.c +++ b/arch/blackfin/kernel/asm-offsets.c @@ -42,6 +42,12 @@ int main(void) DEFINE(THREAD_PC, offsetof(struct thread_struct, pc)); DEFINE(KERNEL_STACK_SIZE, THREAD_SIZE); + /* offsets in thread_info struct */ + OFFSET(TI_TASK, thread_info, task); + OFFSET(TI_FLAGS, thread_info, flags); + OFFSET(TI_CPU, thread_info, cpu); + OFFSET(TI_PREEMPT, thread_info, preempt_count); + /* offsets into the pt_regs */ DEFINE(PT_ORIG_R0, offsetof(struct pt_regs, orig_r0)); DEFINE(PT_ORIG_P0, offsetof(struct pt_regs, orig_p0)); |