avoid endless loops in lib/swiotlb.c
[wrt350n-kernel.git] / arch / avr32 / kernel / asm-offsets.c
blob078cd33f467be29256d3d81f39da48c9df6fb510
1 /*
2 * Generate definitions needed by assembly language modules.
3 * This code generates raw asm output which is post-processed
4 * to extract and format the required data.
5 */
7 #include <linux/thread_info.h>
9 #define DEFINE(sym, val) \
10 asm volatile("\n->" #sym " %0 " #val : : "i" (val))
12 #define BLANK() asm volatile("\n->" : : )
14 #define OFFSET(sym, str, mem) \
15 DEFINE(sym, offsetof(struct str, mem));
17 void foo(void)
19 OFFSET(TI_task, thread_info, task);
20 OFFSET(TI_exec_domain, thread_info, exec_domain);
21 OFFSET(TI_flags, thread_info, flags);
22 OFFSET(TI_cpu, thread_info, cpu);
23 OFFSET(TI_preempt_count, thread_info, preempt_count);
24 OFFSET(TI_rar_saved, thread_info, rar_saved);
25 OFFSET(TI_rsr_saved, thread_info, rsr_saved);
26 OFFSET(TI_restart_block, thread_info, restart_block);