summaryrefslogtreecommitdiff
path: root/components/libc
diff options
context:
space:
mode:
authorliruncong <[email protected]>2019-02-17 18:46:30 +0800
committerliruncong <[email protected]>2019-03-10 10:55:24 +0800
commitce9629cb577a0705334f0a5cbcddbf8c296e347b (patch)
tree41606e45460f307e759d63c56189e6933ec9b159 /components/libc
parentd0239b43a0ac1ce04d7a81b305dd6df9cbf81212 (diff)
[components/libc/compilers/armlibc]_sys_exit增加RT_WEAK限定,由具体bsp重新实现,通常需要关闭中断,关闭IO输出等
Diffstat (limited to 'components/libc')
-rw-r--r--components/libc/compilers/armlibc/stubs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/libc/compilers/armlibc/stubs.c b/components/libc/compilers/armlibc/stubs.c
index 555108f712..b6ffb37b0f 100644
--- a/components/libc/compilers/armlibc/stubs.c
+++ b/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);