/*1* This program is used to generate definitions needed by2* assembly language modules.3*4* We use the technique used in the OSF Mach kernel code:5* generate asm statements containing #defines,6* compile this file to assembler, and then extract the7* #defines from the assembly-language output.8*9* On sparc, thread_info data is static and TI_XXX offsets are computed by hand.10*/1112#include <linux/sched.h>13// #include <linux/mm.h>14#include <linux/kbuild.h>1516#ifdef CONFIG_SPARC3217int sparc32_foo(void)18{19DEFINE(AOFF_thread_fork_kpsr,20offsetof(struct thread_struct, fork_kpsr));21return 0;22}23#else24int sparc64_foo(void)25{26return 0;27}28#endif2930int foo(void)31{32BLANK();33DEFINE(AOFF_task_thread, offsetof(struct task_struct, thread));34BLANK();35DEFINE(AOFF_mm_context, offsetof(struct mm_struct, context));3637/* DEFINE(NUM_USER_SEGMENTS, TASK_SIZE>>28); */38return 0;39}40414243