FIX: Revert thread.c and rtthread.h to previous version.

FIX: Abort handler will suspend current thread instead of terminate it.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@260 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
mbbill
2009-12-29 08:13:45 +00:00
parent 8a590215b6
commit 54453a0748
3 changed files with 10 additions and 8 deletions
+7 -5
View File
@@ -36,11 +36,13 @@ void rt_hw_trap_fiq()
{
rt_kprintf("fast interrupt request\n");
}
extern void rt_thread_exit(void);
extern struct rt_thread* rt_current_thread;
void rt_hw_trap_abort()
{
rt_thread_exit();
rt_kprintf("Abort occured, thread terminated.\n");
{
rt_kprintf("Abort occured!!! Thread [%s] suspended.\n",rt_current_thread->name);
rt_thread_suspend(rt_current_thread);
rt_schedule();
}
/*@}*/