ACPI / LPSS: Make acpi_lpss_find_device() also find PCI devices
[linux/fpc-iii.git] / arch / x86 / include / asm / frame.h
blob5cbce6fbb534bc0c4c6a8ca710de678ee9850d28
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_X86_FRAME_H
3 #define _ASM_X86_FRAME_H
5 #include <asm/asm.h>
7 /*
8 * These are stack frame creation macros. They should be used by every
9 * callable non-leaf asm function to make kernel stack traces more reliable.
12 #ifdef CONFIG_FRAME_POINTER
14 #ifdef __ASSEMBLY__
16 .macro FRAME_BEGIN
17 push %_ASM_BP
18 _ASM_MOV %_ASM_SP, %_ASM_BP
19 .endm
21 .macro FRAME_END
22 pop %_ASM_BP
23 .endm
25 #else /* !__ASSEMBLY__ */
27 #define FRAME_BEGIN \
28 "push %" _ASM_BP "\n" \
29 _ASM_MOV "%" _ASM_SP ", %" _ASM_BP "\n"
31 #define FRAME_END "pop %" _ASM_BP "\n"
33 #endif /* __ASSEMBLY__ */
35 #define FRAME_OFFSET __ASM_SEL(4, 8)
37 #else /* !CONFIG_FRAME_POINTER */
39 #define FRAME_BEGIN
40 #define FRAME_END
41 #define FRAME_OFFSET 0
43 #endif /* CONFIG_FRAME_POINTER */
45 #endif /* _ASM_X86_FRAME_H */