提交 3f0bde83 编写于 作者: T Thomas Gleixner 提交者: Thomas Gleixner

x86: unify include/asm/unwind_32/64.h

32bit has an extra UNW_FP define, which does not hurt.
Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
上级 9d256ff5
#ifdef CONFIG_X86_32 #ifndef _ASM_X86_UNWIND_H
# include "unwind_32.h" #define _ASM_X86_UNWIND_H
#else
# include "unwind_64.h" #define UNW_PC(frame) ((void)(frame), 0UL)
#endif #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 */
#ifndef _ASM_I386_UNWIND_H
#define _ASM_I386_UNWIND_H
#define UNW_PC(frame) ((void)(frame), 0)
#define UNW_SP(frame) ((void)(frame), 0)
#define UNW_FP(frame) ((void)(frame), 0)
static inline int arch_unw_user_mode(const void *info)
{
return 0;
}
#endif /* _ASM_I386_UNWIND_H */
#ifndef _ASM_X86_64_UNWIND_H
#define _ASM_X86_64_UNWIND_H
#define UNW_PC(frame) ((void)(frame), 0UL)
#define UNW_SP(frame) ((void)(frame), 0UL)
static inline int arch_unw_user_mode(const void *info)
{
return 0;
}
#endif /* _ASM_X86_64_UNWIND_H */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册