diff options
| author | Meco Man <[email protected]> | 2021-02-17 00:18:49 +0800 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2021-02-17 00:18:49 +0800 |
| commit | 9f5878b2fbdf90afb9c92dc40d99b79905b2b158 (patch) | |
| tree | 3dbcbaefd414aa984a6dcfc564e61a7e15ebd2b7 /components/libc/compilers/common | |
| parent | e927a53b41fa58573e14eccac37374d686ad3cf7 (diff) | |
update
Diffstat (limited to 'components/libc/compilers/common')
| -rw-r--r-- | components/libc/compilers/common/stdlib.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/components/libc/compilers/common/stdlib.c b/components/libc/compilers/common/stdlib.c index 01f18aca5f..022342aea9 100644 --- a/components/libc/compilers/common/stdlib.c +++ b/components/libc/compilers/common/stdlib.c @@ -12,7 +12,7 @@ #define ABORT_STATUS 2 -rt_inline void __exit__(int status) +void __exit__(int status) { rt_thread_t self = rt_thread_self(); @@ -27,7 +27,7 @@ rt_inline void __exit__(int status) { if(status == ABORT_STATUS) /* abort() */ { - rt_kprintf("thread:%s abort!\n", RT_NAME_MAX, self->name, status); + rt_kprintf("thread:%s abort!\n", RT_NAME_MAX, self->name); } else /* exit() */ { @@ -36,16 +36,14 @@ rt_inline void __exit__(int status) rt_thread_suspend(self); rt_schedule(); } - - while(1); /* noreturn */ } -rt_inline void __abort__(void) +void __abort__(void) { __exit__(ABORT_STATUS); } -rt_inline int __system__(const char *string) +int __system__(const char *string) { /* TODO */ return 0; |
