]> bbs.cooldavid.org Git - net-next-2.6.git/blame - arch/avr32/kernel/asm-offsets.c
avr32: use kbuild.h macros instead of defining macros in asm-offsets.c
[net-next-2.6.git] / arch / avr32 / kernel / asm-offsets.c
CommitLineData
5f97f7f9
HS
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 */
6
7#include <linux/thread_info.h>
40765200 8#include <linux/kbuild.h>
5f97f7f9
HS
9
10void foo(void)
11{
12 OFFSET(TI_task, thread_info, task);
13 OFFSET(TI_exec_domain, thread_info, exec_domain);
14 OFFSET(TI_flags, thread_info, flags);
15 OFFSET(TI_cpu, thread_info, cpu);
16 OFFSET(TI_preempt_count, thread_info, preempt_count);
2507bc13
HS
17 OFFSET(TI_rar_saved, thread_info, rar_saved);
18 OFFSET(TI_rsr_saved, thread_info, rsr_saved);
5f97f7f9
HS
19 OFFSET(TI_restart_block, thread_info, restart_block);
20}