xref: /linux/arch/x86/include/asm/frame.h (revision 3bb598fb23b6040e67b5e6db9a00b28cd26e5809)
1 #ifdef __ASSEMBLY__
2 
3 #include <asm/dwarf2.h>
4 
5 /* The annotation hides the frame from the unwinder and makes it look
6    like a ordinary ebp save/restore. This avoids some special cases for
7    frame pointer later */
8 #ifdef CONFIG_FRAME_POINTER
9 	.macro FRAME
10 	pushl_cfi %ebp
11 	CFI_REL_OFFSET ebp,0
12 	movl %esp,%ebp
13 	.endm
14 	.macro ENDFRAME
15 	popl_cfi %ebp
16 	CFI_RESTORE ebp
17 	.endm
18 #else
19 	.macro FRAME
20 	.endm
21 	.macro ENDFRAME
22 	.endm
23 #endif
24 
25 #endif  /*  __ASSEMBLY__  */
26