linkage.h 648 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. */
  8. #ifndef __ASM_LINKAGE_H
  9. #define __ASM_LINKAGE_H
  10. #ifdef __ASSEMBLY__
  11. /* Can't use the ENTRY macro in linux/linkage.h
  12. * gas considers ';' as comment vs. newline
  13. */
  14. .macro ARC_ENTRY name
  15. .global \name
  16. .align 4
  17. \name:
  18. .endm
  19. .macro ARC_EXIT name
  20. #define ASM_PREV_SYM_ADDR(name) .-##name
  21. .size \ name, ASM_PREV_SYM_ADDR(\name)
  22. .endm
  23. #endif /* __ASSEMBLY__ */
  24. #endif