aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/um/asm
diff options
context:
space:
mode:
authorAl Viro <viro@ftp.linux.org.uk>2011-08-18 15:12:09 -0400
committerRichard Weinberger <richard@nod.at>2011-11-02 09:15:26 -0400
commita10c95d84c2d04a4bfb02104644bbf2811b99690 (patch)
treebd8cc3d66cce495fe78fe76c3636ab02a9ad0784 /arch/x86/um/asm
parent4d211093e838ddd049b5cf4f0773aa5ac67f9976 (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/asm')
-rw-r--r--arch/x86/um/asm/processor.h4
-rw-r--r--arch/x86/um/asm/processor_32.h4
-rw-r--r--arch/x86/um/asm/processor_64.h3
3 files changed, 4 insertions, 7 deletions
diff --git a/arch/x86/um/asm/processor.h b/arch/x86/um/asm/processor.h
index f34c4b2d09f3..118c143a9cb4 100644
--- a/arch/x86/um/asm/processor.h
+++ b/arch/x86/um/asm/processor.h
@@ -10,6 +10,10 @@
10# include "processor_64.h" 10# include "processor_64.h"
11#endif 11#endif
12 12
13#define KSTK_EIP(tsk) KSTK_REG(tsk, HOST_IP)
14#define KSTK_ESP(tsk) KSTK_REG(tsk, HOST_IP)
15#define KSTK_EBP(tsk) KSTK_REG(tsk, HOST_BP)
16
13#define ARCH_IS_STACKGROW(address) \ 17#define ARCH_IS_STACKGROW(address) \
14 (address + 65536 + 32 * sizeof(unsigned long) >= UPT_SP(&current->thread.regs.regs)) 18 (address + 65536 + 32 * sizeof(unsigned long) >= UPT_SP(&current->thread.regs.regs))
15 19
diff --git a/arch/x86/um/asm/processor_32.h b/arch/x86/um/asm/processor_32.h
index c4078b581df1..018f732704dd 100644
--- a/arch/x86/um/asm/processor_32.h
+++ b/arch/x86/um/asm/processor_32.h
@@ -63,8 +63,4 @@ static inline void rep_nop(void)
63#define current_text_addr() \ 63#define current_text_addr() \
64 ({ void *pc; __asm__("movl $1f,%0\n1:":"=g" (pc)); pc; }) 64 ({ void *pc; __asm__("movl $1f,%0\n1:":"=g" (pc)); pc; })
65 65
66#define KSTK_EIP(tsk) KSTK_REG(tsk, EIP)
67#define KSTK_ESP(tsk) KSTK_REG(tsk, UESP)
68#define KSTK_EBP(tsk) KSTK_REG(tsk, EBP)
69
70#endif 66#endif
diff --git a/arch/x86/um/asm/processor_64.h b/arch/x86/um/asm/processor_64.h
index 0186c61d0a7e..61de92d916c3 100644
--- a/arch/x86/um/asm/processor_64.h
+++ b/arch/x86/um/asm/processor_64.h
@@ -42,7 +42,4 @@ static inline void arch_copy_thread(struct arch_thread *from,
42#define current_text_addr() \ 42#define current_text_addr() \
43 ({ void *pc; __asm__("movq $1f,%0\n1:":"=g" (pc)); pc; }) 43 ({ void *pc; __asm__("movq $1f,%0\n1:":"=g" (pc)); pc; })
44 44
45#define KSTK_EIP(tsk) KSTK_REG(tsk, RIP)
46#define KSTK_ESP(tsk) KSTK_REG(tsk, RSP)
47
48#endif 45#endif