]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/m68knommu/kernel/asm-offsets.c
Merge branch 'topic/quirk-cleanup' into topic/hda
[linux-2.6-omap-h63xx.git] / arch / m68knommu / kernel / asm-offsets.c
index d97b89bae53cf10c824422308254148e55c6e325..c785d07c02cc249ce8e537f13210b9b3edccdb35 100644 (file)
 #include <linux/kernel_stat.h>
 #include <linux/ptrace.h>
 #include <linux/hardirq.h>
+#include <linux/kbuild.h>
 #include <asm/bootinfo.h>
 #include <asm/irq.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 task struct */
@@ -91,6 +87,7 @@ int main(void)
        DEFINE(TI_TASK, offsetof(struct thread_info, task));
        DEFINE(TI_EXECDOMAIN, offsetof(struct thread_info, exec_domain));
        DEFINE(TI_FLAGS, offsetof(struct thread_info, flags));
+       DEFINE(TI_PREEMPTCOUNT, offsetof(struct thread_info, preempt_count));
        DEFINE(TI_CPU, offsetof(struct thread_info, cpu));
 
        return 0;