read_tp.S 343 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright (C) 2017 Hangzhou C-SKY Microsystems co.,ltd.
  3. *
  4. * Licensed under the LGPL v2.1 or later, see the file COPYING.LIB
  5. * in this tarball.
  6. */
  7. #include <sysdep.h>
  8. #ifndef NOT_IN_libc
  9. .global __read_tp
  10. #else
  11. .hidden __read_tp
  12. #endif
  13. ENTRY (__read_tp)
  14. #ifdef __CSKYABIV2__
  15. mov a0, tls
  16. #else
  17. trap 3
  18. #endif
  19. rts
  20. END (__read_tp)