diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-11-21 17:55:12 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-01-28 13:18:53 +0900 |
commit | fb8e569c1d4f44a4632e2db95a27ed45734d4705 (patch) | |
tree | 3f1f4f7abe68bac6362843af909f0cd923937ba7 /arch/sh64/kernel/asm-offsets.c | |
parent | 5db141a9469c8446a179696bc7d374f4cd9b207a (diff) | |
download | op-kernel-dev-fb8e569c1d4f44a4632e2db95a27ed45734d4705.zip op-kernel-dev-fb8e569c1d4f44a4632e2db95a27ed45734d4705.tar.gz |
sh: Fix up user_fpu_struct typo for SH-5.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh64/kernel/asm-offsets.c')
-rw-r--r-- | arch/sh64/kernel/asm-offsets.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/arch/sh64/kernel/asm-offsets.c b/arch/sh64/kernel/asm-offsets.c deleted file mode 100644 index ca76537..0000000 --- a/arch/sh64/kernel/asm-offsets.c +++ /dev/null @@ -1,33 +0,0 @@ -/* - * This program is used to generate definitions needed by - * assembly language modules. - * - * We use the technique used in the OSF Mach kernel code: - * generate asm statements containing #defines, - * compile this file to assembler, and then extract the - * #defines from the assembly-language output. - */ - -#include <linux/stddef.h> -#include <linux/types.h> -#include <linux/mm.h> -#include <asm/thread_info.h> - -#define DEFINE(sym, val) \ - asm volatile("\n->" #sym " %0 " #val : : "i" (val)) - -#define BLANK() asm volatile("\n->" : : ) - -int main(void) -{ - /* offsets into the thread_info struct */ - DEFINE(TI_TASK, offsetof(struct thread_info, task)); - DEFINE(TI_EXEC_DOMAIN, offsetof(struct thread_info, exec_domain)); - DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); - DEFINE(TI_PRE_COUNT, offsetof(struct thread_info, preempt_count)); - DEFINE(TI_CPU, offsetof(struct thread_info, cpu)); - DEFINE(TI_ADDR_LIMIT, offsetof(struct thread_info, addr_limit)); - DEFINE(TI_RESTART_BLOCK,offsetof(struct thread_info, restart_block)); - - return 0; -} |