diff options
author | Joern Rennecke <joern.rennecke@embecosm.com> | 2009-09-10 01:29:09 +0000 |
---|---|---|
committer | Joern Rennecke <joern.rennecke@embecosm.com> | 2009-09-10 01:29:09 +0000 |
commit | 53a66016cd5b19c00469b8265eb7a187d3eda5c0 (patch) | |
tree | 572674ab079b84b828e7b8b466751abf8d357923 /newlib/libc/stdlib/exit.c | |
parent | 0f285615efa16c783821cd87a1fdabe4913da9a7 (diff) | |
download | newlib-53a66016cd5b19c00469b8265eb7a187d3eda5c0.zip newlib-53a66016cd5b19c00469b8265eb7a187d3eda5c0.tar.gz newlib-53a66016cd5b19c00469b8265eb7a187d3eda5c0.tar.bz2 |
Support for ARCompact architecture.
Diffstat (limited to 'newlib/libc/stdlib/exit.c')
-rw-r--r-- | newlib/libc/stdlib/exit.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/newlib/libc/stdlib/exit.c b/newlib/libc/stdlib/exit.c index 195b724..7648091 100644 --- a/newlib/libc/stdlib/exit.c +++ b/newlib/libc/stdlib/exit.c @@ -62,5 +62,9 @@ _DEFUN (exit, (code), if (_GLOBAL_REENT->__cleanup) (*_GLOBAL_REENT->__cleanup) (_GLOBAL_REENT); +#ifdef REENTRANT_SYSCALLS_PROVIDED + _exit_r (_GLOBAL_REENT, code); +#else _exit (code); +#endif } |