syscalls.c 430 B

123456789101112131415161718192021222324
  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 void __exit__(int status);
  14. __exit__(status);
  15. while(1);
  16. }
  17. void abort(void)
  18. {
  19. extern void __abort__(void);
  20. __abort__();
  21. while(1);
  22. }