2021-02-13 15:14:07 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2006-2018, RT-Thread Development Team
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2021-02-13 Meco Man implement exit() and abort()
|
|
|
|
*/
|
2021-02-13 15:16:53 +08:00
|
|
|
#include <rtthread.h>
|
2021-02-13 15:14:07 +08:00
|
|
|
|
|
|
|
void exit (int status)
|
|
|
|
{
|
2021-02-17 00:18:49 +08:00
|
|
|
extern void __exit__(int status);
|
|
|
|
__exit__(status);
|
|
|
|
while(1);
|
2021-02-13 15:14:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
void abort(void)
|
|
|
|
{
|
2021-02-17 00:18:49 +08:00
|
|
|
extern void __abort__(void);
|
2021-02-17 00:02:28 +08:00
|
|
|
__abort__();
|
2021-02-17 00:18:49 +08:00
|
|
|
while(1);
|
2021-02-13 15:14:07 +08:00
|
|
|
}
|