cpuport_gcc.S 493 B

12345678910111213141516171819202122
  1. /*
  2. * Copyright (c) 2006-2022, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2022-10-19 RT-Thread the first version
  9. */
  10. #include "cpuport.h"
  11. #include "stackframe.h"
  12. .global _rt_thread_entry
  13. _rt_thread_entry:
  14. LOAD ra, (sp) /* texit */
  15. addi sp, sp, 8
  16. LOAD a0, (sp) /* parameter */
  17. addi sp, sp, 8
  18. LOAD t0, (sp) /* tentry */
  19. addi sp, sp, 8
  20. jr t0