| Adrian Bunk | 7e02cb9 | 2007-10-17 18:04:38 +0200 | [diff] [blame] | 1 | #ifdef __ASSEMBLY__ | 
|  | 2 |  | 
| Jan Beulich | 4625cd6 | 2011-07-19 12:59:51 +0100 | [diff] [blame] | 3 | #include <asm/asm.h> | 
| Andi Kleen | ecaf45e | 2006-09-26 10:52:29 +0200 | [diff] [blame] | 4 | #include <asm/dwarf2.h> | 
|  | 5 |  | 
|  | 6 | /* The annotation hides the frame from the unwinder and makes it look | 
|  | 7 | like a ordinary ebp save/restore. This avoids some special cases for | 
|  | 8 | frame pointer later */ | 
|  | 9 | #ifdef CONFIG_FRAME_POINTER | 
|  | 10 | .macro FRAME | 
| Jan Beulich | 4625cd6 | 2011-07-19 12:59:51 +0100 | [diff] [blame] | 11 | __ASM_SIZE(push,_cfi)	%__ASM_REG(bp) | 
|  | 12 | CFI_REL_OFFSET		__ASM_REG(bp), 0 | 
|  | 13 | __ASM_SIZE(mov)		%__ASM_REG(sp), %__ASM_REG(bp) | 
| Andi Kleen | ecaf45e | 2006-09-26 10:52:29 +0200 | [diff] [blame] | 14 | .endm | 
|  | 15 | .macro ENDFRAME | 
| Jan Beulich | 4625cd6 | 2011-07-19 12:59:51 +0100 | [diff] [blame] | 16 | __ASM_SIZE(pop,_cfi)	%__ASM_REG(bp) | 
|  | 17 | CFI_RESTORE		__ASM_REG(bp) | 
| Andi Kleen | ecaf45e | 2006-09-26 10:52:29 +0200 | [diff] [blame] | 18 | .endm | 
|  | 19 | #else | 
|  | 20 | .macro FRAME | 
|  | 21 | .endm | 
|  | 22 | .macro ENDFRAME | 
|  | 23 | .endm | 
|  | 24 | #endif | 
| Adrian Bunk | 7e02cb9 | 2007-10-17 18:04:38 +0200 | [diff] [blame] | 25 |  | 
|  | 26 | #endif  /*  __ASSEMBLY__  */ |