From a1df417e74aa6dae7352dc8cbb0ad471af5b7c69 Mon Sep 17 00:00:00 2001 From: "Michael J. Chudobiak" Date: Mon, 25 Apr 2016 10:00:44 -0400 Subject: initial Olimex linux tree from Daniel, originally Feb 3, 2016 --- linux/arch/avr32/kernel/asm-offsets.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 linux/arch/avr32/kernel/asm-offsets.c (limited to 'linux/arch/avr32/kernel/asm-offsets.c') diff --git a/linux/arch/avr32/kernel/asm-offsets.c b/linux/arch/avr32/kernel/asm-offsets.c new file mode 100644 index 00000000..2c9764fe --- /dev/null +++ b/linux/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 +#include +#include +#include + +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); +} -- cgit