diff options
author | gorcunov@gmail.com <gorcunov@gmail.com> | 2008-03-28 10:56:57 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:41:33 -0400 |
commit | 6b6891f9c545ccd45d6d8ddfd33ce27c22c271a7 (patch) | |
tree | 3cfd4cfda9363eac5e9126978e3f2d6dd8b55d32 /arch/x86/kernel/traps_32.c | |
parent | 6093015db2bd9e70cf20cdd23be1a50733baafdd (diff) |
x86: cleanup - rename VM_MASK to X86_VM_MASK
This patch renames VM_MASK to X86_VM_MASK (which
in turn defined as alias to X86_EFLAGS_VM) to better
distinguish from virtual memory flags. We can't just
use X86_EFLAGS_VM instead because it is also used
for conditional compilation
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/traps_32.c')
-rw-r--r-- | arch/x86/kernel/traps_32.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/kernel/traps_32.c b/arch/x86/kernel/traps_32.c index 3284502a1bf8..bb9107c56ff5 100644 --- a/arch/x86/kernel/traps_32.c +++ b/arch/x86/kernel/traps_32.c | |||
@@ -498,7 +498,7 @@ do_trap(int trapnr, int signr, char *str, int vm86, struct pt_regs *regs, | |||
498 | { | 498 | { |
499 | struct task_struct *tsk = current; | 499 | struct task_struct *tsk = current; |
500 | 500 | ||
501 | if (regs->flags & VM_MASK) { | 501 | if (regs->flags & X86_VM_MASK) { |
502 | if (vm86) | 502 | if (vm86) |
503 | goto vm86_trap; | 503 | goto vm86_trap; |
504 | goto trap_signal; | 504 | goto trap_signal; |
@@ -643,7 +643,7 @@ void __kprobes do_general_protection(struct pt_regs *regs, long error_code) | |||
643 | } | 643 | } |
644 | put_cpu(); | 644 | put_cpu(); |
645 | 645 | ||
646 | if (regs->flags & VM_MASK) | 646 | if (regs->flags & X86_VM_MASK) |
647 | goto gp_in_vm86; | 647 | goto gp_in_vm86; |
648 | 648 | ||
649 | if (!user_mode(regs)) | 649 | if (!user_mode(regs)) |
@@ -922,7 +922,7 @@ void __kprobes do_debug(struct pt_regs *regs, long error_code) | |||
922 | goto clear_dr7; | 922 | goto clear_dr7; |
923 | } | 923 | } |
924 | 924 | ||
925 | if (regs->flags & VM_MASK) | 925 | if (regs->flags & X86_VM_MASK) |
926 | goto debug_vm86; | 926 | goto debug_vm86; |
927 | 927 | ||
928 | /* Save debug status register where ptrace can see it */ | 928 | /* Save debug status register where ptrace can see it */ |
@@ -1094,7 +1094,7 @@ void do_simd_coprocessor_error(struct pt_regs *regs, long error_code) | |||
1094 | * Handle strange cache flush from user space exception | 1094 | * Handle strange cache flush from user space exception |
1095 | * in all other cases. This is undocumented behaviour. | 1095 | * in all other cases. This is undocumented behaviour. |
1096 | */ | 1096 | */ |
1097 | if (regs->flags & VM_MASK) { | 1097 | if (regs->flags & X86_VM_MASK) { |
1098 | handle_vm86_fault((struct kernel_vm86_regs *)regs, error_code); | 1098 | handle_vm86_fault((struct kernel_vm86_regs *)regs, error_code); |
1099 | return; | 1099 | return; |
1100 | } | 1100 | } |