summaryrefslogtreecommitdiffstats
path: root/arch/x86/um/os-Linux
diff options
context:
space:
mode:
authorAl Viro <viro@ftp.linux.org.uk>2011-08-18 20:12:09 +0100
committerRichard Weinberger <richard@nod.at>2011-11-02 14:15:26 +0100
commita10c95d84c2d04a4bfb02104644bbf2811b99690 (patch)
treebd8cc3d66cce495fe78fe76c3636ab02a9ad0784 /arch/x86/um/os-Linux
parent4d211093e838ddd049b5cf4f0773aa5ac67f9976 (diff)
downloadlinux-a10c95d84c2d04a4bfb02104644bbf2811b99690.tar.gz
linux-a10c95d84c2d04a4bfb02104644bbf2811b99690.tar.bz2
linux-a10c95d84c2d04a4bfb02104644bbf2811b99690.zip
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.c12
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)
{
switch (reg) {
#ifdef __i386__
- case EIP:
+ case HOST_IP:
return buf[0]->__eip;
- case UESP:
+ case HOST_SP:
return buf[0]->__esp;
- case EBP:
+ case HOST_BP:
return buf[0]->__ebp;
#else
- case RIP:
+ case HOST_IP:
return buf[0]->__rip;
- case RSP:
+ case HOST_SP:
return buf[0]->__rsp;
- case RBP:
+ case HOST_BP:
return buf[0]->__rbp;
#endif
default: