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 | |
| 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 |
Ingo Molnar | 131484c | 2015-05-28 12:21:47 +0200 | [diff] [blame] | 10 | __ASM_SIZE(push,) %__ASM_REG(bp) |
Jan Beulich | 4625cd6 | 2011-07-19 12:59:51 +0100 | [diff] [blame] | 11 | __ASM_SIZE(mov) %__ASM_REG(sp), %__ASM_REG(bp) |
Andi Kleen | ecaf45e | 2006-09-26 10:52:29 +0200 | [diff] [blame] | 12 | .endm |
| 13 | .macro ENDFRAME |
Ingo Molnar | 131484c | 2015-05-28 12:21:47 +0200 | [diff] [blame] | 14 | __ASM_SIZE(pop,) %__ASM_REG(bp) |
Andi Kleen | ecaf45e | 2006-09-26 10:52:29 +0200 | [diff] [blame] | 15 | .endm |
| 16 | #else |
| 17 | .macro FRAME |
| 18 | .endm |
| 19 | .macro ENDFRAME |
| 20 | .endm |
| 21 | #endif |
Adrian Bunk | 7e02cb9 | 2007-10-17 18:04:38 +0200 | [diff] [blame] | 22 | |
| 23 | #endif /* __ASSEMBLY__ */ |