blob: 2c9764fe3532494385b7b8d19347082a5808ad4c [file] [log] [blame]
Haavard Skinnemoen5f97f7f2006-09-25 23:32:13 -07001/*
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 Skinnemoen9e3f5442008-08-20 15:46:24 +02007#include <linux/mm.h>
8#include <linux/sched.h>
Haavard Skinnemoen5f97f7f2006-09-25 23:32:13 -07009#include <linux/thread_info.h>
Christoph Lameter40765202008-04-29 01:04:02 -070010#include <linux/kbuild.h>
Haavard Skinnemoen5f97f7f2006-09-25 23:32:13 -070011
12void foo(void)
13{
14 OFFSET(TI_task, thread_info, task);
Haavard Skinnemoen5f97f7f2006-09-25 23:32:13 -070015 OFFSET(TI_flags, thread_info, flags);
16 OFFSET(TI_cpu, thread_info, cpu);
17 OFFSET(TI_preempt_count, thread_info, preempt_count);
Haavard Skinnemoen2507bc12007-11-28 15:04:01 +010018 OFFSET(TI_rar_saved, thread_info, rar_saved);
19 OFFSET(TI_rsr_saved, thread_info, rsr_saved);
Haavard Skinnemoen9e3f5442008-08-20 15:46:24 +020020 BLANK();
21 OFFSET(TSK_active_mm, task_struct, active_mm);
22 BLANK();
23 OFFSET(MM_pgd, mm_struct, pgd);
Haavard Skinnemoen5f97f7f2006-09-25 23:32:13 -070024}