aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/ptrace.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-x86/ptrace.h')
-rw-r--r--include/asm-x86/ptrace.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-x86/ptrace.h b/include/asm-x86/ptrace.h
index e779f2b26b32..24ec061566c5 100644
--- a/include/asm-x86/ptrace.h
+++ b/include/asm-x86/ptrace.h
@@ -170,7 +170,7 @@ static inline int user_mode(struct pt_regs *regs)
170static inline int user_mode_vm(struct pt_regs *regs) 170static inline int user_mode_vm(struct pt_regs *regs)
171{ 171{
172#ifdef CONFIG_X86_32 172#ifdef CONFIG_X86_32
173 return ((regs->cs & SEGMENT_RPL_MASK) | (regs->flags & VM_MASK)) >= 173 return ((regs->cs & SEGMENT_RPL_MASK) | (regs->flags & X86_VM_MASK)) >=
174 USER_RPL; 174 USER_RPL;
175#else 175#else
176 return user_mode(regs); 176 return user_mode(regs);
@@ -180,7 +180,7 @@ static inline int user_mode_vm(struct pt_regs *regs)
180static inline int v8086_mode(struct pt_regs *regs) 180static inline int v8086_mode(struct pt_regs *regs)
181{ 181{
182#ifdef CONFIG_X86_32 182#ifdef CONFIG_X86_32
183 return (regs->flags & VM_MASK); 183 return (regs->flags & X86_VM_MASK);
184#else 184#else
185 return 0; /* No V86 mode support in long mode */ 185 return 0; /* No V86 mode support in long mode */
186#endif 186#endif