asm-offsets.c (e5451c8f8330e03ad3cfa16048b4daf961af434f) asm-offsets.c (05cdf457477d6603b207d91873f0a3d4c7f8c1cd)
1/*
2 * Copyright (C) 2007-2009 Michal Simek <monstr@monstr.eu>
3 * Copyright (C) 2007-2009 PetaLogix
4 * Copyright (C) 2006 Atmark Techno, Inc.
5 *
6 * This file is subject to the terms and conditions of the GNU General Public
7 * License. See the file "COPYING" in the main directory of this archive
8 * for more details.

--- 56 unchanged lines hidden (view full) ---

65 /* Magic offsets for PTRACE PEEK/POKE etc */
66 DEFINE(PT_TEXT_ADDR, sizeof(struct pt_regs) + 1);
67 DEFINE(PT_TEXT_LEN, sizeof(struct pt_regs) + 2);
68 DEFINE(PT_DATA_ADDR, sizeof(struct pt_regs) + 3);
69 BLANK();
70
71 /* struct task_struct */
72 DEFINE(TS_THREAD_INFO, offsetof(struct task_struct, stack));
1/*
2 * Copyright (C) 2007-2009 Michal Simek <monstr@monstr.eu>
3 * Copyright (C) 2007-2009 PetaLogix
4 * Copyright (C) 2006 Atmark Techno, Inc.
5 *
6 * This file is subject to the terms and conditions of the GNU General Public
7 * License. See the file "COPYING" in the main directory of this archive
8 * for more details.

--- 56 unchanged lines hidden (view full) ---

65 /* Magic offsets for PTRACE PEEK/POKE etc */
66 DEFINE(PT_TEXT_ADDR, sizeof(struct pt_regs) + 1);
67 DEFINE(PT_TEXT_LEN, sizeof(struct pt_regs) + 2);
68 DEFINE(PT_DATA_ADDR, sizeof(struct pt_regs) + 3);
69 BLANK();
70
71 /* struct task_struct */
72 DEFINE(TS_THREAD_INFO, offsetof(struct task_struct, stack));
73#ifdef CONFIG_MMU
74 DEFINE(TASK_STATE, offsetof(struct task_struct, state));
75 DEFINE(TASK_FLAGS, offsetof(struct task_struct, flags));
76 DEFINE(TASK_PTRACE, offsetof(struct task_struct, ptrace));
77 DEFINE(TASK_BLOCKED, offsetof(struct task_struct, blocked));
78 DEFINE(TASK_MM, offsetof(struct task_struct, mm));
79 DEFINE(TASK_ACTIVE_MM, offsetof(struct task_struct, active_mm));
80 DEFINE(TASK_PID, offsetof(struct task_struct, pid));
81 DEFINE(TASK_THREAD, offsetof(struct task_struct, thread));
82 DEFINE(THREAD_KSP, offsetof(struct thread_struct, ksp));
83 BLANK();
84
85 DEFINE(PGDIR, offsetof(struct thread_struct, pgdir));
86 BLANK();
73 DEFINE(TASK_STATE, offsetof(struct task_struct, state));
74 DEFINE(TASK_FLAGS, offsetof(struct task_struct, flags));
75 DEFINE(TASK_PTRACE, offsetof(struct task_struct, ptrace));
76 DEFINE(TASK_BLOCKED, offsetof(struct task_struct, blocked));
77 DEFINE(TASK_MM, offsetof(struct task_struct, mm));
78 DEFINE(TASK_ACTIVE_MM, offsetof(struct task_struct, active_mm));
79 DEFINE(TASK_PID, offsetof(struct task_struct, pid));
80 DEFINE(TASK_THREAD, offsetof(struct task_struct, thread));
81 DEFINE(THREAD_KSP, offsetof(struct thread_struct, ksp));
82 BLANK();
83
84 DEFINE(PGDIR, offsetof(struct thread_struct, pgdir));
85 BLANK();
87#endif
88
89 /* struct thread_info */
90 DEFINE(TI_TASK, offsetof(struct thread_info, task));
91 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags));
92 DEFINE(TI_ADDR_LIMIT, offsetof(struct thread_info, addr_limit));
93 DEFINE(TI_CPU_CONTEXT, offsetof(struct thread_info, cpu_context));
94 DEFINE(TI_PREEMPT_COUNT, offsetof(struct thread_info, preempt_count));
95 BLANK();

--- 33 unchanged lines hidden ---
86
87 /* struct thread_info */
88 DEFINE(TI_TASK, offsetof(struct thread_info, task));
89 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags));
90 DEFINE(TI_ADDR_LIMIT, offsetof(struct thread_info, addr_limit));
91 DEFINE(TI_CPU_CONTEXT, offsetof(struct thread_info, cpu_context));
92 DEFINE(TI_PREEMPT_COUNT, offsetof(struct thread_info, preempt_count));
93 BLANK();

--- 33 unchanged lines hidden ---