asmArm.h 865 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2.  * @ : Copyright (c) 2021 Phytium Information Technology, Inc.
  3.  *
  4.  * SPDX-License-Identifier: Apache-2.0.
  5.  *
  6. * @Date: 2021-01-20 10:07:04
  7. * @LastEditTime: 2021-05-24 14:36:34
  8. * @LastEditors: Please set LastEditors
  9. * @Description: In User Settings Edit
  10. * @FilePath: \project_freertos\devices\ft2004\gcc\asmArm.h
  11. */
  12. #ifndef ASMARM_H
  13. #define ASMARM_H
  14. #define FUNC_LABEL(func) \
  15. func:
  16. #if (defined __GNUC__)
  17. #define FUNC_BEGIN(func) \
  18. .thumb; \
  19. .thumb_func; \
  20. .balign 4; \
  21. FUNC_LABEL(func)
  22. #else /* !__GNUC__ */
  23. #define FUNC_BEGIN(func) \
  24. .thumb; \
  25. .balign 4; \
  26. FUNC_LABEL(func)
  27. #endif /* __GNUC__ */
  28. #define FUNC(sym) sym
  29. #define FUNC_END(func) .size FUNC(func), .- FUNC(func)
  30. #define Swap64(var64) var64
  31. #define Swap32(var32) var32
  32. #endif // !ASMARM_H