diff options
author | Christoph Lameter <clameter@sgi.com> | 2008-04-29 04:04:04 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-29 11:06:30 -0400 |
commit | de400bd278464fe811186b4b0d3a5cfac0d747fb (patch) | |
tree | e354de68f2fd003492cf1048ad40176f4679c77a /arch/frv | |
parent | 5544b9ed81bf1677ad6c3e5b58c05837249805b7 (diff) |
frv: use kbuild.h instead of defining macros in asm-offsets.c
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/frv')
-rw-r--r-- | arch/frv/kernel/asm-offsets.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/frv/kernel/asm-offsets.c b/arch/frv/kernel/asm-offsets.c index fbb19fc1af40..9de96843a278 100644 --- a/arch/frv/kernel/asm-offsets.c +++ b/arch/frv/kernel/asm-offsets.c | |||
@@ -7,15 +7,13 @@ | |||
7 | #include <linux/sched.h> | 7 | #include <linux/sched.h> |
8 | #include <linux/signal.h> | 8 | #include <linux/signal.h> |
9 | #include <linux/personality.h> | 9 | #include <linux/personality.h> |
10 | #include <linux/kbuild.h> | ||
10 | #include <asm/registers.h> | 11 | #include <asm/registers.h> |
11 | #include <asm/ucontext.h> | 12 | #include <asm/ucontext.h> |
12 | #include <asm/processor.h> | 13 | #include <asm/processor.h> |
13 | #include <asm/thread_info.h> | 14 | #include <asm/thread_info.h> |
14 | #include <asm/gdb-stub.h> | 15 | #include <asm/gdb-stub.h> |
15 | 16 | ||
16 | #define DEFINE(sym, val) \ | ||
17 | asm volatile("\n->" #sym " %0 " #val : : "i" (val)) | ||
18 | |||
19 | #define DEF_PTREG(sym, reg) \ | 17 | #define DEF_PTREG(sym, reg) \ |
20 | asm volatile("\n->" #sym " %0 offsetof(struct pt_regs, " #reg ")" \ | 18 | asm volatile("\n->" #sym " %0 offsetof(struct pt_regs, " #reg ")" \ |
21 | : : "i" (offsetof(struct pt_regs, reg))) | 19 | : : "i" (offsetof(struct pt_regs, reg))) |
@@ -32,11 +30,6 @@ | |||
32 | asm volatile("\n->" #sym " %0 offsetof(struct frv_frame0, " #reg ")" \ | 30 | asm volatile("\n->" #sym " %0 offsetof(struct frv_frame0, " #reg ")" \ |
33 | : : "i" (offsetof(struct frv_frame0, reg))) | 31 | : : "i" (offsetof(struct frv_frame0, reg))) |
34 | 32 | ||
35 | #define BLANK() asm volatile("\n->" : : ) | ||
36 | |||
37 | #define OFFSET(sym, str, mem) \ | ||
38 | DEFINE(sym, offsetof(struct str, mem)); | ||
39 | |||
40 | void foo(void) | 33 | void foo(void) |
41 | { | 34 | { |
42 | /* offsets into the thread_info structure */ | 35 | /* offsets into the thread_info structure */ |