diff options
Diffstat (limited to 'kernel/arch/avr32/kernel/asm-offsets.c')
-rw-r--r-- | kernel/arch/avr32/kernel/asm-offsets.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/kernel/arch/avr32/kernel/asm-offsets.c b/kernel/arch/avr32/kernel/asm-offsets.c new file mode 100644 index 000000000..2c9764fe3 --- /dev/null +++ b/kernel/arch/avr32/kernel/asm-offsets.c @@ -0,0 +1,24 @@ +/* + * Generate definitions needed by assembly language modules. + * This code generates raw asm output which is post-processed + * to extract and format the required data. + */ + +#include <linux/mm.h> +#include <linux/sched.h> +#include <linux/thread_info.h> +#include <linux/kbuild.h> + +void foo(void) +{ + OFFSET(TI_task, thread_info, task); + 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); + BLANK(); + OFFSET(TSK_active_mm, task_struct, active_mm); + BLANK(); + OFFSET(MM_pgd, mm_struct, pgd); +} |