/* FUNCTION <>---abnormal termination of a program INDEX abort SYNOPSIS #include void abort(void); DESCRIPTION Use <> to signal that your program has detected a condition it cannot deal with. Normally, <> ends your program's execution. In general implementation, <> raises the exception <>. But for nds32 target, currently it is not necessary for MCU platform. We can just call <<_exit>> to terminate program. RETURNS <> does not return to its caller. PORTABILITY ANSI C requires <>. Supporting OS subroutines required: <<_exit>>. */ #include _VOID _DEFUN_VOID (abort) { while (1) { _exit (1); } }