We had hardcoded defines for TI_TASK TI_EXEC_DOMAIN, TI_FLAGS, TI_CPU,
TI_ADDR_LIMIT, TI_PRE_COUNT, TI_RESTART_BLOCK; but only two of these
were ever used. Remove all from thread_info.h, and generate the two
that we do use (TI_FLAGS and TI_PRE_COUNT) in asm_offsets.c
Patch supplied by Zou Nan hai
Signed-off-by: Tony Luck <tony.luck@intel.com>
BLANK();
+ DEFINE(TI_FLAGS, offsetof(struct thread_info, flags));
+ DEFINE(TI_PRE_COUNT, offsetof(struct thread_info, preempt_count));
+
+ BLANK();
+
DEFINE(IA64_TASK_BLOCKED_OFFSET,offsetof (struct task_struct, blocked));
DEFINE(IA64_TASK_CLEAR_CHILD_TID_OFFSET,offsetof (struct task_struct, clear_child_tid));
DEFINE(IA64_TASK_GROUP_LEADER_OFFSET, offsetof (struct task_struct, group_leader));
#include <asm/processor.h>
#include <asm/ptrace.h>
-#define TI_TASK 0x00
-#define TI_EXEC_DOMAIN 0x08
-#define TI_FLAGS 0x10
-#define TI_CPU 0x14
-#define TI_ADDR_LIMIT 0x18
-#define TI_PRE_COUNT 0x20
-#define TI_RESTART_BLOCK 0x28
-
#define PREEMPT_ACTIVE_BIT 30
#define PREEMPT_ACTIVE (1 << PREEMPT_ACTIVE_BIT)