asm.h 911 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * include/asm-v850/asm.h -- Macros for writing assembly code
  3. *
  4. * Copyright (C) 2001,02,03 NEC Electronics Corporation
  5. * Copyright (C) 2001,02,03 Miles Bader <miles@gnu.org>
  6. *
  7. * This file is subject to the terms and conditions of the GNU General
  8. * Public License. See the file COPYING in the main directory of this
  9. * archive for more details.
  10. *
  11. * Written by Miles Bader <miles@gnu.org>
  12. */
  13. #define G_ENTRY(name) \
  14. .balign 4; \
  15. .globl name; \
  16. .type name,@function; \
  17. name
  18. #define G_DATA(name) \
  19. .globl name; \
  20. .type name,@object; \
  21. name
  22. #define END(name) \
  23. .size name,.-name
  24. #define L_ENTRY(name) \
  25. .balign 4; \
  26. .type name,@function; \
  27. name
  28. #define L_DATA(name) \
  29. .type name,@object; \
  30. name