mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-25 01:57:17 +08:00
19 lines
312 B
C
19 lines
312 B
C
|
#include <_ansi.h>
|
||
|
#include "swi.h"
|
||
|
|
||
|
void _exit _PARAMS ((int));
|
||
|
|
||
|
void
|
||
|
_exit (int n)
|
||
|
{
|
||
|
/* FIXME: return code is thrown away. */
|
||
|
|
||
|
#ifdef ARM_RDI_MONITOR
|
||
|
do_AngelSWI (AngelSWI_Reason_ReportException,
|
||
|
(void *) ADP_Stopped_ApplicationExit);
|
||
|
#else
|
||
|
asm ("swi %a0" :: "i" (SWI_Exit));
|
||
|
#endif
|
||
|
n = n;
|
||
|
}
|