git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
um: unify KSTK_...
[pandora-kernel.git]
/
arch
/
x86
/
um
/
asm
/
processor.h
diff --git
a/arch/x86/um/asm/processor.h
b/arch/x86/um/asm/processor.h
index
f34c4b2
..
118c143
100644
(file)
--- a/
arch/x86/um/asm/processor.h
+++ b/
arch/x86/um/asm/processor.h
@@
-10,6
+10,10
@@
# include "processor_64.h"
#endif
# include "processor_64.h"
#endif
+#define KSTK_EIP(tsk) KSTK_REG(tsk, HOST_IP)
+#define KSTK_ESP(tsk) KSTK_REG(tsk, HOST_IP)
+#define KSTK_EBP(tsk) KSTK_REG(tsk, HOST_BP)
+
#define ARCH_IS_STACKGROW(address) \
(address + 65536 + 32 * sizeof(unsigned long) >= UPT_SP(¤t->thread.regs.regs))
#define ARCH_IS_STACKGROW(address) \
(address + 65536 + 32 * sizeof(unsigned long) >= UPT_SP(¤t->thread.regs.regs))