projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8045b4
)
mn10300: use kbuild.h instead of defining macros in asm-offsets.c
author
Christoph Lameter
<clameter@sgi.com>
Tue, 29 Apr 2008 08:04:07 +0000
(
01:04
-0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Tue, 29 Apr 2008 15:06:30 +0000
(08:06 -0700)
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>
arch/mn10300/kernel/asm-offsets.c
patch
|
blob
|
history
diff --git
a/arch/mn10300/kernel/asm-offsets.c
b/arch/mn10300/kernel/asm-offsets.c
index
ee2d9f8
..
2646fcb
100644
(file)
--- a/
arch/mn10300/kernel/asm-offsets.c
+++ b/
arch/mn10300/kernel/asm-offsets.c
@@
-7,6
+7,7
@@
#include <linux/sched.h>
#include <linux/signal.h>
#include <linux/personality.h>
+#include <linux/kbuild.h>
#include <asm/ucontext.h>
#include <asm/processor.h>
#include <asm/thread_info.h>
@@
-14,14
+15,6
@@
#include "sigframe.h"
#include "mn10300-serial.h"
-#define DEFINE(sym, val) \
- asm volatile("\n->" #sym " %0 " #val : : "i" (val))
-
-#define BLANK() asm volatile("\n->")
-
-#define OFFSET(sym, str, mem) \
- DEFINE(sym, offsetof(struct str, mem));
-
void foo(void)
{
OFFSET(SIGCONTEXT_d0, sigcontext, d0);