diff options
Diffstat (limited to 'include/asm-i386/ptrace.h')
| -rw-r--r-- | include/asm-i386/ptrace.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/asm-i386/ptrace.h b/include/asm-i386/ptrace.h index bdbc894339b4..6002597b9e12 100644 --- a/include/asm-i386/ptrace.h +++ b/include/asm-i386/ptrace.h | |||
| @@ -16,8 +16,8 @@ struct pt_regs { | |||
| 16 | long eax; | 16 | long eax; |
| 17 | int xds; | 17 | int xds; |
| 18 | int xes; | 18 | int xes; |
| 19 | /* int xfs; */ | 19 | int xfs; |
| 20 | int xgs; | 20 | /* int xgs; */ |
| 21 | long orig_eax; | 21 | long orig_eax; |
| 22 | long eip; | 22 | long eip; |
| 23 | int xcs; | 23 | int xcs; |
| @@ -49,6 +49,10 @@ static inline int user_mode_vm(struct pt_regs *regs) | |||
| 49 | { | 49 | { |
| 50 | return ((regs->xcs & SEGMENT_RPL_MASK) | (regs->eflags & VM_MASK)) >= USER_RPL; | 50 | return ((regs->xcs & SEGMENT_RPL_MASK) | (regs->eflags & VM_MASK)) >= USER_RPL; |
| 51 | } | 51 | } |
| 52 | static inline int v8086_mode(struct pt_regs *regs) | ||
| 53 | { | ||
| 54 | return (regs->eflags & VM_MASK); | ||
| 55 | } | ||
| 52 | 56 | ||
| 53 | #define instruction_pointer(regs) ((regs)->eip) | 57 | #define instruction_pointer(regs) ((regs)->eip) |
| 54 | #define regs_return_value(regs) ((regs)->eax) | 58 | #define regs_return_value(regs) ((regs)->eax) |
