diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-05-12 15:20:58 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-24 05:25:29 -0400 |
commit | 49023168261a7f9a2fd4a1ca1adbfea922556015 (patch) | |
tree | b1de43b6868195f917b3a12335e590352a7efa46 /arch/x86/kernel/mmiotrace/kmmio.c | |
parent | 801a175bf601f9a9d5e86e92dee9adeeb6625da8 (diff) |
mmiotrace: cleanup
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/mmiotrace/kmmio.c')
-rw-r--r-- | arch/x86/kernel/mmiotrace/kmmio.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/x86/kernel/mmiotrace/kmmio.c b/arch/x86/kernel/mmiotrace/kmmio.c index cd0d95fe4fe6..3ad27b8504a5 100644 --- a/arch/x86/kernel/mmiotrace/kmmio.c +++ b/arch/x86/kernel/mmiotrace/kmmio.c | |||
@@ -228,7 +228,7 @@ int kmmio_handler(struct pt_regs *regs, unsigned long addr) | |||
228 | 228 | ||
229 | ctx->fpage = faultpage; | 229 | ctx->fpage = faultpage; |
230 | ctx->probe = get_kmmio_probe(addr); | 230 | ctx->probe = get_kmmio_probe(addr); |
231 | ctx->saved_flags = (regs->flags & (TF_MASK|IF_MASK)); | 231 | ctx->saved_flags = (regs->flags & (X86_EFLAGS_TF | X86_EFLAGS_IF)); |
232 | ctx->addr = addr; | 232 | ctx->addr = addr; |
233 | 233 | ||
234 | if (ctx->probe && ctx->probe->pre_handler) | 234 | if (ctx->probe && ctx->probe->pre_handler) |
@@ -238,8 +238,8 @@ int kmmio_handler(struct pt_regs *regs, unsigned long addr) | |||
238 | * Enable single-stepping and disable interrupts for the faulting | 238 | * Enable single-stepping and disable interrupts for the faulting |
239 | * context. Local interrupts must not get enabled during stepping. | 239 | * context. Local interrupts must not get enabled during stepping. |
240 | */ | 240 | */ |
241 | regs->flags |= TF_MASK; | 241 | regs->flags |= X86_EFLAGS_TF; |
242 | regs->flags &= ~IF_MASK; | 242 | regs->flags &= ~X86_EFLAGS_IF; |
243 | 243 | ||
244 | /* Now we set present bit in PTE and single step. */ | 244 | /* Now we set present bit in PTE and single step. */ |
245 | disarm_kmmio_fault_page(ctx->fpage->page, NULL); | 245 | disarm_kmmio_fault_page(ctx->fpage->page, NULL); |
@@ -283,7 +283,7 @@ static int post_kmmio_handler(unsigned long condition, struct pt_regs *regs) | |||
283 | 283 | ||
284 | arm_kmmio_fault_page(ctx->fpage->page, NULL); | 284 | arm_kmmio_fault_page(ctx->fpage->page, NULL); |
285 | 285 | ||
286 | regs->flags &= ~TF_MASK; | 286 | regs->flags &= ~X86_EFLAGS_TF; |
287 | regs->flags |= ctx->saved_flags; | 287 | regs->flags |= ctx->saved_flags; |
288 | 288 | ||
289 | /* These were acquired in kmmio_handler(). */ | 289 | /* These were acquired in kmmio_handler(). */ |
@@ -297,7 +297,7 @@ static int post_kmmio_handler(unsigned long condition, struct pt_regs *regs) | |||
297 | * will have TF set, in which case, continue the remaining processing | 297 | * will have TF set, in which case, continue the remaining processing |
298 | * of do_debug, as if this is not a probe hit. | 298 | * of do_debug, as if this is not a probe hit. |
299 | */ | 299 | */ |
300 | if (!(regs->flags & TF_MASK)) | 300 | if (!(regs->flags & X86_EFLAGS_TF)) |
301 | ret = 1; | 301 | ret = 1; |
302 | out: | 302 | out: |
303 | put_cpu_var(kmmio_ctx); | 303 | put_cpu_var(kmmio_ctx); |