sysdep.h 576 B

12345678910111213141516171819202122232425
  1. #include <common/sysdep.h>
  2. #ifdef __ASSEMBLER__
  3. /* Syntactic details of assembler. */
  4. # define ALIGNARG(log2) log2
  5. # define ASM_SIZE_DIRECTIVE(name) .size name,.-name
  6. /* Define an entry point visible from C. */
  7. # define ENTRY(name) \
  8. .globl C_SYMBOL_NAME(name); \
  9. .type C_SYMBOL_NAME(name),@function; \
  10. .align ALIGNARG(2); \
  11. C_LABEL(name)
  12. # undef END
  13. # define END(name) ASM_SIZE_DIRECTIVE(name)
  14. /* Local label name for asm code. */
  15. # ifndef L
  16. # define L(name) $L##name
  17. # endif
  18. #endif