asm.h 422 B

1234567891011121314151617
  1. #pragma once
  2. #ifndef __ASM__
  3. #define __ASM__
  4. #define APU_BOOT_TMP_STACK_SIZE 1024
  5. // 符号名
  6. #define SYMBOL_NAME(X) X
  7. // 符号名字符串
  8. #define SYMBOL_NAME_STR(X) #X
  9. // 符号名label
  10. #define SYMBOL_NAME_LABEL(X) X##:
  11. #define ENTRY(name) \
  12. .global SYMBOL_NAME(name); \
  13. SYMBOL_NAME_LABEL(name)
  14. #endif