crti.S 765 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * libc/sysdeps/linux/microblaze/crti.S -- init/fini entry code for microblaze
  3. * (baselined with gcc 4.1.2)
  4. *
  5. * Copyright (C) 2010 Digital Design Corporation
  6. *
  7. * This file is subject to the terms and conditions of the GNU Lesser
  8. * General Public License. See the file COPYING.LIB in the main
  9. * directory of this archive for more details.
  10. */
  11. #define END_INIT
  12. #define END_FINI
  13. #define ALIGN
  14. #include <libc-symbols.h>
  15. /*@HEADER_ENDS*/
  16. .section .init
  17. .align 2
  18. .globl _init
  19. _init:
  20. addik r1, r1, -32
  21. swi r19, r1, 28
  22. addk r19, r1, r0
  23. swi r15, r1, 0
  24. ALIGN
  25. END_INIT
  26. .section .fini
  27. .align 2
  28. .globl _fini
  29. _fini:
  30. addik r1, r1, -32
  31. swi r19, r1, 28
  32. addk r19, r1, r0
  33. swi r15, r1, 0
  34. ALIGN
  35. END_FINI