stack_gcc.S 594 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (c) 2006-2024, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2021-05-18 Jesven the first version
  9. * 2023-06-24 Shell Support debug frame for user thread
  10. */
  11. #ifndef __ASSEMBLY__
  12. #define __ASSEMBLY__
  13. #endif
  14. #include "rtconfig.h"
  15. #include "asm-generic.h"
  16. #include "asm-fpu.h"
  17. #include "armv8.h"
  18. .section .text
  19. START_POINT(_thread_start)
  20. mov x0, x21
  21. blr x19
  22. mov x29, #0
  23. blr x20
  24. b . /* never here */
  25. START_POINT_END(_thread_start)