blob: 2c6fc9e6281252d669fc3efbbc1ebed704e9a6ba [file] [log] [blame]
Adrian Bunk7e02cb92007-10-17 18:04:38 +02001#ifdef __ASSEMBLY__
2
Andi Kleenecaf45e2006-09-26 10:52:29 +02003#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
Jan Beulich60cf6372011-02-28 15:54:40 +000010 pushl_cfi %ebp
Andi Kleenecaf45e2006-09-26 10:52:29 +020011 CFI_REL_OFFSET ebp,0
12 movl %esp,%ebp
13 .endm
14 .macro ENDFRAME
Jan Beulich60cf6372011-02-28 15:54:40 +000015 popl_cfi %ebp
Andi Kleenecaf45e2006-09-26 10:52:29 +020016 CFI_RESTORE ebp
17 .endm
18#else
19 .macro FRAME
20 .endm
21 .macro ENDFRAME
22 .endm
23#endif
Adrian Bunk7e02cb92007-10-17 18:04:38 +020024
25#endif /* __ASSEMBLY__ */