Merge branch 'ec-cleanup' into release
[pandora-kernel.git] / arch / x86 / include / asm / frame.h
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__  */