Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3f0bde83 authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Thomas Gleixner
Browse files

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



32bit has an extra UNW_FP define, which does not hurt.

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 9d256ff5
Loading
Loading
Loading
Loading
+13 −5
Original line number Diff line number Diff line
#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 */

include/asm-x86/unwind_32.h

deleted100644 → 0
+0 −13
Original line number Diff line number Diff line
#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 */

include/asm-x86/unwind_64.h

deleted100644 → 0
+0 −12
Original line number Diff line number Diff line
#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 */