]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/avr32/kernel/asm-offsets.c
avr32: use kbuild.h macros instead of defining macros in asm-offsets.c
[linux-2.6-omap-h63xx.git] / arch / avr32 / kernel / asm-offsets.c
index 97d8658656678dfa981d8e3edd68c550eea9bc3f..e4796c67a831aa930208c736de6722b1a460891b 100644 (file)
@@ -5,14 +5,7 @@
  */
 
 #include <linux/thread_info.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));
+#include <linux/kbuild.h>
 
 void foo(void)
 {
@@ -21,5 +14,7 @@ void foo(void)
        OFFSET(TI_flags, thread_info, flags);
        OFFSET(TI_cpu, thread_info, cpu);
        OFFSET(TI_preempt_count, thread_info, preempt_count);
+       OFFSET(TI_rar_saved, thread_info, rar_saved);
+       OFFSET(TI_rsr_saved, thread_info, rsr_saved);
        OFFSET(TI_restart_block, thread_info, restart_block);
 }