frame.h 461 B

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