syscalls.c 387 B

123456789101112131415161718
  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. /* for exit() and abort() */
  12. void __exit (int status)
  13. {
  14. extern void __rt_libc_exit(int status);
  15. __rt_libc_exit(status);
  16. while(1);
  17. }