mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-25 01:57:17 +08:00
libgloss/ * arm/Makefile.in: Include _exit.c in BSPs. Add rdimon-ram.ld. Build linker scripts instead of spec files for rdimon and rdpmon. Pass CRT0 ad BSP to arm.sc. * arm/_exit.c: New file. * arm/arm.sc: Add STARTUP, GROUP and SEARCH_DIR. Remove defaults for ROM and RAM. * arm/crt0.S: Give Thumb-2 symbols function type. Skip generic Arm init code for Thumb-2. Add _nmi_isr and _fault_isr. * arm/libcfunc.c (do_AngelSWI): Remove. * arm/swi.h (do_AngelSWI): New function. * arm/syscalls.c (do_AngelSWI): Remove. (_exit): Remove. (isatty): New function.
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;
|
|
}
|