diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2011-08-18 15:12:09 -0400 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2011-11-02 09:15:26 -0400 |
commit | a10c95d84c2d04a4bfb02104644bbf2811b99690 (patch) | |
tree | bd8cc3d66cce495fe78fe76c3636ab02a9ad0784 /arch/x86/um/os-Linux | |
parent | 4d211093e838ddd049b5cf4f0773aa5ac67f9976 (diff) |
um: unify KSTK_...
... and switch get_thread_register() to HOST_... for register numbers
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/x86/um/os-Linux')
-rw-r--r-- | arch/x86/um/os-Linux/registers.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/x86/um/os-Linux/registers.c b/arch/x86/um/os-Linux/registers.c index 3a9b6247bbbc..fa2e5a669e41 100644 --- a/arch/x86/um/os-Linux/registers.c +++ b/arch/x86/um/os-Linux/registers.c | |||
@@ -89,18 +89,18 @@ unsigned long get_thread_reg(int reg, jmp_buf *buf) | |||
89 | { | 89 | { |
90 | switch (reg) { | 90 | switch (reg) { |
91 | #ifdef __i386__ | 91 | #ifdef __i386__ |
92 | case EIP: | 92 | case HOST_IP: |
93 | return buf[0]->__eip; | 93 | return buf[0]->__eip; |
94 | case UESP: | 94 | case HOST_SP: |
95 | return buf[0]->__esp; | 95 | return buf[0]->__esp; |
96 | case EBP: | 96 | case HOST_BP: |
97 | return buf[0]->__ebp; | 97 | return buf[0]->__ebp; |
98 | #else | 98 | #else |
99 | case RIP: | 99 | case HOST_IP: |
100 | return buf[0]->__rip; | 100 | return buf[0]->__rip; |
101 | case RSP: | 101 | case HOST_SP: |
102 | return buf[0]->__rsp; | 102 | return buf[0]->__rsp; |
103 | case RBP: | 103 | case HOST_BP: |
104 | return buf[0]->__rbp; | 104 | return buf[0]->__rbp; |
105 | #endif | 105 | #endif |
106 | default: | 106 | default: |