浏览代码

[components/libc/compilers/armlibc]_sys_exit增加RT_WEAK限定,由具体bsp重新实现,通常需要关闭中断,关闭IO输出等

liruncong 6 年之前
父节点
当前提交
ce9629cb57
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      components/libc/compilers/armlibc/stubs.c

+ 1 - 1
components/libc/compilers/armlibc/stubs.c

@@ -251,7 +251,7 @@ void _ttywrch(int ch)
 #endif
 }
 
-void _sys_exit(int return_code)
+RT_WEAK void _sys_exit(int return_code)
 {
     /* TODO: perhaps exit the thread which is invoking this function */
     while (1);