PATCH: add more ARM semihosting support

Sandra Loosemore sandra@codesourcery.com
Tue Jun 13 00:53:00 GMT 2006


Here's a patch to add support for a few more semihosting calls (specifically, 
_unlink, _rename, _isatty, and _system) to the ARM_RDI_MONITOR case.  It is kind 
of confusing to me that there are two versions of the syscalls.c file in 
different places, but I added the same code to both places while trying to leave 
the other stuff alone.  The code that was previously in the libgloss version to 
handle these was incorrect according to the ARM Debug Target Guide 
documentation, while the newlib version just had stubs returning -1.

2006-06-08  Sandra Loosemore <sandra@codesourcery.com>

         * newlib/libc/sys/arm/syscalls.c (_unlink, isatty, _system, _rename):
         Make them do something useful in the ARM_RDI_MONITOR case.
         * libgloss/arm/syscalls.c (_unlink, isatty, _system, _rename):
         Likewise.

-Sandra

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: newlib.patch3
URL: <http://sourceware.org/pipermail/newlib/attachments/20060613/7f4b1835/attachment.ksh>


More information about the Newlib mailing list