diff options
author | Roland McGrath <roland@redhat.com> | 2008-01-30 07:30:48 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:30:48 -0500 |
commit | 77c03dcd448aa4c7be45f4edb97381ef463e3911 (patch) | |
tree | 4f9f5de145846bbeac75b33ab10354fdde801583 /arch/x86/kernel/ptrace_32.c | |
parent | 2608a6584a0a32d3251dfafad31d9f8b2c784466 (diff) |
x86: remove TRAP_FLAG
This gets rid of the local constant macro TRAP_FLAG.
It's redundant with the public constant macro X86_EFLAGS_TF.
Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/ptrace_32.c')
-rw-r--r-- | arch/x86/kernel/ptrace_32.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/arch/x86/kernel/ptrace_32.c b/arch/x86/kernel/ptrace_32.c index 09227cfb7c4c..4619bda470b6 100644 --- a/arch/x86/kernel/ptrace_32.c +++ b/arch/x86/kernel/ptrace_32.c | |||
@@ -37,9 +37,6 @@ | |||
37 | */ | 37 | */ |
38 | #define FLAG_MASK 0x00050dd5 | 38 | #define FLAG_MASK 0x00050dd5 |
39 | 39 | ||
40 | /* set's the trap flag. */ | ||
41 | #define TRAP_FLAG 0x100 | ||
42 | |||
43 | /* | 40 | /* |
44 | * Offset of eflags on child stack.. | 41 | * Offset of eflags on child stack.. |
45 | */ | 42 | */ |
@@ -235,11 +232,11 @@ static void set_singlestep(struct task_struct *child) | |||
235 | /* | 232 | /* |
236 | * If TF was already set, don't do anything else | 233 | * If TF was already set, don't do anything else |
237 | */ | 234 | */ |
238 | if (regs->eflags & TRAP_FLAG) | 235 | if (regs->eflags & X86_EFLAGS_TF) |
239 | return; | 236 | return; |
240 | 237 | ||
241 | /* Set TF on the kernel stack.. */ | 238 | /* Set TF on the kernel stack.. */ |
242 | regs->eflags |= TRAP_FLAG; | 239 | regs->eflags |= X86_EFLAGS_TF; |
243 | 240 | ||
244 | /* | 241 | /* |
245 | * ..but if TF is changed by the instruction we will trace, | 242 | * ..but if TF is changed by the instruction we will trace, |
@@ -260,7 +257,7 @@ static void clear_singlestep(struct task_struct *child) | |||
260 | /* But touch TF only if it was set by us.. */ | 257 | /* But touch TF only if it was set by us.. */ |
261 | if (child->ptrace & PT_DTRACE) { | 258 | if (child->ptrace & PT_DTRACE) { |
262 | struct pt_regs *regs = get_child_regs(child); | 259 | struct pt_regs *regs = get_child_regs(child); |
263 | regs->eflags &= ~TRAP_FLAG; | 260 | regs->eflags &= ~X86_EFLAGS_TF; |
264 | child->ptrace &= ~PT_DTRACE; | 261 | child->ptrace &= ~PT_DTRACE; |
265 | } | 262 | } |
266 | } | 263 | } |