summaryrefslogtreecommitdiff
path: root/components/libc/newlib/syscalls.c
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2016-05-10 09:22:01 +0800
committerBernard Xiong <[email protected]>2016-05-10 09:22:01 +0800
commit64feef0dde9d8353ffe4a3f257ab17848ccf6f53 (patch)
treedd3f096b8a3c249e5327cc34a0c105c5125099e1 /components/libc/newlib/syscalls.c
parenteb320a0104bbaa6c1235fe899b6d099fdabe8c25 (diff)
[LIBC] mv pthreads/libdl to libc and rename dfs_lwip to dfs_net
Diffstat (limited to 'components/libc/newlib/syscalls.c')
-rw-r--r--components/libc/newlib/syscalls.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/components/libc/newlib/syscalls.c b/components/libc/newlib/syscalls.c
index b5d4ec5bf6..55c19ccee9 100644
--- a/components/libc/newlib/syscalls.c
+++ b/components/libc/newlib/syscalls.c
@@ -450,5 +450,15 @@ void __libc_init_array(void)
void abort(void)
{
- return ;
+ if (rt_thread_self())
+ {
+ rt_thread_t self = rt_thread_self();
+
+ rt_kprintf("thread:%-8.*s abort!\n", RT_NAME_MAX, self->name);
+ rt_thread_suspend(self);
+
+ rt_schedule();
+ }
+
+ while (1);
}