syscalls.c 427 B

12345678910111213141516171819202122
  1. /*
  2. * Copyright (c) 2006-2018, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2021-02-13 Meco Man implement exit() and abort()
  9. */
  10. #include <rtthread.h>
  11. void exit (int status)
  12. {
  13. extern rt_inline void __exit__(int status);
  14. __exit__(return_code);
  15. }
  16. void abort(void)
  17. {
  18. extern rt_inline void __abort__(void);
  19. __abort__();
  20. }