Haavard Skinnemoen | 5f97f7f | 2006-09-25 23:32:13 -0700 | [diff] [blame] | 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 | |
Haavard Skinnemoen | 9e3f544 | 2008-08-20 15:46:24 +0200 | [diff] [blame] | 7 | #include <linux/mm.h> |
| 8 | #include <linux/sched.h> |
Haavard Skinnemoen | 5f97f7f | 2006-09-25 23:32:13 -0700 | [diff] [blame] | 9 | #include <linux/thread_info.h> |
Christoph Lameter | 4076520 | 2008-04-29 01:04:02 -0700 | [diff] [blame] | 10 | #include <linux/kbuild.h> |
Haavard Skinnemoen | 5f97f7f | 2006-09-25 23:32:13 -0700 | [diff] [blame] | 11 | |
| 12 | void foo(void) |
| 13 | { |
| 14 | OFFSET(TI_task, thread_info, task); |
| 15 | OFFSET(TI_exec_domain, thread_info, exec_domain); |
| 16 | OFFSET(TI_flags, thread_info, flags); |
| 17 | OFFSET(TI_cpu, thread_info, cpu); |
| 18 | OFFSET(TI_preempt_count, thread_info, preempt_count); |
Haavard Skinnemoen | 2507bc1 | 2007-11-28 15:04:01 +0100 | [diff] [blame] | 19 | OFFSET(TI_rar_saved, thread_info, rar_saved); |
| 20 | OFFSET(TI_rsr_saved, thread_info, rsr_saved); |
Haavard Skinnemoen | 5f97f7f | 2006-09-25 23:32:13 -0700 | [diff] [blame] | 21 | OFFSET(TI_restart_block, thread_info, restart_block); |
Haavard Skinnemoen | 9e3f544 | 2008-08-20 15:46:24 +0200 | [diff] [blame] | 22 | BLANK(); |
| 23 | OFFSET(TSK_active_mm, task_struct, active_mm); |
| 24 | BLANK(); |
| 25 | OFFSET(MM_pgd, mm_struct, pgd); |
Haavard Skinnemoen | 5f97f7f | 2006-09-25 23:32:13 -0700 | [diff] [blame] | 26 | } |