frame.i 453 B

1234567891011121314151617181920212223
  1. #include <asm/dwarf2.h>
  2. /* The annotation hides the frame from the unwinder and makes it look
  3. like a ordinary ebp save/restore. This avoids some special cases for
  4. frame pointer later */
  5. #ifdef CONFIG_FRAME_POINTER
  6. .macro FRAME
  7. pushl %ebp
  8. CFI_ADJUST_CFA_OFFSET 4
  9. CFI_REL_OFFSET ebp,0
  10. movl %esp,%ebp
  11. .endm
  12. .macro ENDFRAME
  13. popl %ebp
  14. CFI_ADJUST_CFA_OFFSET -4
  15. CFI_RESTORE ebp
  16. .endm
  17. #else
  18. .macro FRAME
  19. .endm
  20. .macro ENDFRAME
  21. .endm
  22. #endif