summaryrefslogtreecommitdiffstats
path: root/libgloss/arm/syscalls.c
Commit message (Collapse)AuthorAgeFilesLines
* * arm/crt0.S: Initialise __heap_limit when ARM_RDI_MONITOR is defined.Corinna Vinschen2015-02-171-1/+6
| | | | | * arm/syscalls.c: define __heap_limit global symbol. * arm/syscalls.c (_sbrk): Honour __heap_limit.
* 2014-02-11 Joey Ye <joey.ye@arm.com>Jeff Johnston2014-02-111-4/+4
| | | | | * arm/syscalls.c (_sbrk): Define as weak symbols. (_read, _write): Ditto.
* * syscalls.c (_isatty): Fix return value.Corinna Vinschen2010-08-271-3/+9
|
* 2007-08-10 Carlos O'Donell <carlos@codesourcery.com>Jeff Johnston2007-08-101-161/+362
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com> * arm/syscalls.c (_stat): Use _close * arm/syscalls.c (struct poslog): Rename to... (struct fdent): ... this. (FILE_HANDLE_OFFSET): Remove. (findslot): Return a struct fdent* if fd is valid, otherwise return NULL. (newslot): New function. (remap_handle): Remove. (initialise_monitor_handles): Use stdout as fallback for stderr. (wrap): Rename to... (checkerror): ... this. (_swiread): Use checkerror() for the return of SWI calls. Correct the use of r0. (_read): Use findslot(). Return EBADF on bad handle. (_swilseek): Call findslot(). Check for valid whence. Check for negative offset when using SEEK_CUR, and check for overflow. Use checkerror(). Check *_Flen calls for errors. (_swiwrite): Correct the use of r0. (_write): Call findslot(). (_swiopen): Call findslot(). Check for valid flags. Use checkerror(). Call newslot(). Handle O_TRUNC, and O_WRONLY. Return index into openfiles[] for fd. (_swiclose): Correct the use of r0. (_close): Handle stderr == stdout case. Only reclaim handle if _swiclose succeeded. (_getpid): Use __attribute__((unused)). (_sbrk): Fix formatting. (_swistat): New function. (_stat): Call _swistat(). (_fstat): Call _swistat(). (_unlink): Correct the use of r0. (isatty): Call finslot(). Correct the use of r0. (_system): Call checkerror(). Correct the use of r0. (_rename): Correct the use of r0.
* 2007-07-06 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-07-061-3/+3
| | | | | | | | | | | | | | | * arm/syscalls.c (gettimeofday): Change to POSIX signature where second argument is passed as void *. * bfin/syscalls.c (gettimeofday): Ditto. * cris/gensyscalls (gettimeofday): Ditto. * cris/linunistd.h (gettimeofday): Ditto. * crx/time.c (gettimeofday): Ditto. * frv/sim-time.c (gettimeofday): Ditto. * i386/cygmon-salib.c (gettimeofday): Ditto. * libnosys/gettod.c (gettimeofday): Ditto. * m68k/io-gettimeofday.c (gettimeofday): Ditto. * sparc/cygmon-salib.c (gettimeofday): Ditto. * spu/gettimeofday.c (gettimeofday): Ditto.
* 2006-01-03 Kazu Hirata <kazu@codesourcery.com>Jeff Johnston2007-01-031-33/+0
| | | | | | | | * arm/Makefile (RDPMON_OBJS): Add _exit.o and _kill.o. (RDIMON_OBJS): Define in terms of RDPMON_OBJS. (rdimon-_exit.o, rdimon-_kill.o): New. * arm/_exit.c, arm/_kill.c: New. * arm/syscalls.c (_exit, _kill): Remove.
* * arm/licfunc.c (do_AngelSWI): Remove.Kazu Hirata2006-12-251-21/+0
| | | | | * arm/syscalls.c (do_AngelSWI): Remove. * arm/swi.h (do_AngelSWI): New.
* * arm/syscalls.c (_unlink, _system, _rename): Cast argumentsKazu Hirata2006-12-251-4/+4
| | | | to do_AngelSWI to int.
* 2006-06-13 Sandra Loosemore <sandra@codesourcery.com>Jeff Johnston2006-06-131-7/+39
| | | | | * arm/syscalls.c (_unlink, isatty, _system, _rename): Make them do something useful in the ARM_RDI_MONITOR case.
* 2006-06-05 Shaun Jackman <sjackman@gmail.com>Jeff Johnston2006-06-051-3/+10
| | | | | | * arm/syscalls.c (kill) [ARM_RDI_MONITOR]: Use the signal argument to choose an ADP exception reason. * arm/libcfunc.c (abort): Remove this function.
* 2006-02-07 Paul Brook <paul@codesourcery.com>Jeff Johnston2006-02-071-1/+1
| | | | | | | | * arm/crt0.S: Add Thumb-2 startup code. * arm/redboot-crt0.S: Ditto. * arm/libcfunc.c (do_AngelSWI): Use AngelSWIInsn. * arm/swi.h (AngelSWIInsn, AngelSWIAsm): Define. * arm/trap.S: Disable for Thumb-2.
* 2005-11-30 Shaun Jackman <sjackman@gmail.com>Jeff Johnston2005-11-301-1/+10
| | | | | | * arm/libcfunc.c (clock, sleep, usleep): New functions. * arm/syscalls.c (_clock): New function. (_times): Call _clock.
* 2005-08-16 Shaun Jackman <sjackman@gmail.com>Jeff Johnston2005-08-161-2/+26
| | | | | | * arm/syscalls.c (initialise_monitor_handles): Set monitor_stderr to the result of SWI_open(":tt", "a") instead of simply duplicating stdout.
* 2005-08-02 Shaun Jackman <sjackman@gmail.com>Jeff Johnston2005-08-021-25/+14
| | | | | | | * libgloss/arm/syscalls.c (_exit): Call _kill with the second argument set to -1, which is an invalid signal number. (_kill): Comment and coding style changes only. (_raise): Remove function.
* 2005-07-18 Shaun Jackman <sjackman@gmail.com>Jeff Johnston2005-07-181-25/+42
| | | | | | | | | | | | | | | * libgloss/arm/libcfunc.c (abort): Call _exit instead of the RDI swi. (alarm): Add the weak attribute. (pause): New function. Return ENOSYS. * libgloss/arm/syscalls.c (_getpid): Add the weak attribute. (_fstat): Ditto. (_stat): Ditto. (_link): Ditto. Return ENOSYS. (_unlink): Call the swi instead of returning -1. (_raise): Add the weak attribute. Return ENOSYS. (isatty): Rename to _isatty. Call the swi instead of returning 1. (_system): Call the swi instead of returning ENOSYS. (_rename): Ditto.
* 2005-05-05 Tobias Anderberg <tobias.anderberg@axis.com>Jeff Johnston2005-05-051-1/+1
| | | | * arm/syscalls.c (get_errno): Fix output register constraint.
* 2005-04-28 Shaun Jackman <sjackman@gmail.com>Jeff Johnston2005-04-281-1/+3
| | | | * libgloss/syscalls.c (get_errno): Add an output register constraint.
* 2005-02-08 Antony King <antony.king@st.com>Jeff Johnston2005-02-081-16/+8
| | | | | * arm/syscalls.c: Change CHECK_INIT to pass reentrant struct instead of file pointer.
* 2004-06-09 Toralf Lund <toralf@procaptura.com>Jeff Johnston2004-06-091-0/+630
* arm/crt0.S: Copied from newlib and it now also sets up stacks for FIQ and IRQ mode, plus calls hardware_init_hook() and software_init_hook() if present. * arm/libcfunc.c, arm/swi.h, arm/syscalls.c: Copied from newlib. * arm/Makefile.in: Build crt0.o, rdpmon-crt0.o, rdimon-crt0.o, librdpmon.a, librdimon.a - support file for "bare" setup, as well as "RDP" and "RDI" monitors. * arm/coff-rdpmon.specs, arm/elf-rdpmon.specs, arm/coff-rdimon.specs, arm/elf-rdimon.specs: gcc specs files to go with above mentioned support libs and startfiles.