summaryrefslogtreecommitdiffstats
path: root/include/asm-x86/unwind.h
diff options
context:
space:
mode:
authorThomas Gleixner2007-10-15 23:28:21 +0200
committerThomas Gleixner2007-10-17 20:32:38 +0200
commit3f0bde835364fd503ac836ebb7d6cac7352a1f30 (patch)
tree09865b3c7ab95c2267b17329699b9684b15c3fec /include/asm-x86/unwind.h
parentx86: unify include/asm/types_32/64.h (diff)
downloadkernel-qcow2-linux-3f0bde835364fd503ac836ebb7d6cac7352a1f30.tar.gz
kernel-qcow2-linux-3f0bde835364fd503ac836ebb7d6cac7352a1f30.tar.xz
kernel-qcow2-linux-3f0bde835364fd503ac836ebb7d6cac7352a1f30.zip
x86: unify include/asm/unwind_32/64.h
32bit has an extra UNW_FP define, which does not hurt. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/asm-x86/unwind.h')
-rw-r--r--include/asm-x86/unwind.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/include/asm-x86/unwind.h b/include/asm-x86/unwind.h
index 7e4d7ad55208..8b064bd9c553 100644
--- a/include/asm-x86/unwind.h
+++ b/include/asm-x86/unwind.h
@@ -1,5 +1,13 @@
-#ifdef CONFIG_X86_32
-# include "unwind_32.h"
-#else
-# include "unwind_64.h"
-#endif
+#ifndef _ASM_X86_UNWIND_H
+#define _ASM_X86_UNWIND_H
+
+#define UNW_PC(frame) ((void)(frame), 0UL)
+#define UNW_SP(frame) ((void)(frame), 0UL)
+#define UNW_FP(frame) ((void)(frame), 0UL)
+
+static inline int arch_unw_user_mode(const void *info)
+{
+ return 0;
+}
+
+#endif /* _ASM_X86_UNWIND_H */