···44 * to extract and format the required data.55 */6677+#define ASM_OFFSETS_C 178#include <linux/config.h>89910#include <linux/sched.h>
+2
include/asm-ia64/ptrace.h
···5757#include <linux/config.h>58585959#include <asm/fpu.h>6060+#ifndef ASM_OFFSETS_C6061#include <asm/asm-offsets.h>6262+#endif61636264/*6365 * Base-2 logarithm of number of pages to allocate per task structure
+7
include/asm-ia64/thread_info.h
···55#ifndef _ASM_IA64_THREAD_INFO_H66#define _ASM_IA64_THREAD_INFO_H7788+#ifndef ASM_OFFSETS_C89#include <asm/asm-offsets.h>1010+#endif911#include <asm/processor.h>1012#include <asm/ptrace.h>1113···5351 }, \5452}55535454+#ifndef ASM_OFFSETS_C5655/* how to get the thread information struct from C */5756#define current_thread_info() ((struct thread_info *) ((char *) current + IA64_TASK_SIZE))5857#define alloc_thread_info(tsk) ((struct thread_info *) ((char *) (tsk) + IA64_TASK_SIZE))5858+#else5959+#define current_thread_info() ((struct thread_info *) 0)6060+#define alloc_thread_info(tsk) ((struct thread_info *) 0)6161+#endif5962#define free_thread_info(ti) /* nothing */60636164#define __HAVE_ARCH_TASK_STRUCT_ALLOCATOR