]> sourceware.org Git - newlib-cygwin.git/commit
arc: libgloss: Introduce hostlink interface
authorVladimir Isaev <vvisaev@gmail.com>
Tue, 21 May 2024 09:56:49 +0000 (10:56 +0100)
committerJeff Johnston <jjohnstn@redhat.com>
Wed, 22 May 2024 18:25:44 +0000 (14:25 -0400)
commit6d5331054ee3c957a4d3c8df05321f670c962020
tree5c60c2803923a50dba14b1b6fa230889a8d839a9
parent25d110dcbdb3a1a02b11f8c53504a27efcda9e82
arc: libgloss: Introduce hostlink interface

There is a special interface built in ARC simulators (such as
nSIM) called MetaWare hostlink IO which can be used to implement
system calls. This commit adds support for this interface to the
ARC port of libgloss.

Here is an example of using this interface:

    $ arc-elf32-gcc -mcpu=hs -specs=hl.specs main.c -o main
    $ nsimdrv -tcf $NSIM_HOME/etc/tcf/templates/hs48_full.tcf main
    Hello, World!

Signed-off-by: Vladimir Isaev <vvisaev@gmail.com>
27 files changed:
libgloss/arc/arc-main-helper.c [new file with mode: 0644]
libgloss/arc/arc-timer.c [new file with mode: 0644]
libgloss/arc/arc-timer.h [new file with mode: 0644]
libgloss/arc/crt0.S
libgloss/arc/hl-setup.c [new file with mode: 0644]
libgloss/arc/hl-stub.c [new file with mode: 0644]
libgloss/arc/hl.specs [new file with mode: 0644]
libgloss/arc/hl/hl_api.c [new file with mode: 0644]
libgloss/arc/hl/hl_api.h [new file with mode: 0644]
libgloss/arc/hl/hl_argc.c [new file with mode: 0644]
libgloss/arc/hl/hl_argv.c [new file with mode: 0644]
libgloss/arc/hl/hl_clock.c [new file with mode: 0644]
libgloss/arc/hl/hl_close.c [new file with mode: 0644]
libgloss/arc/hl/hl_exit.c [new file with mode: 0644]
libgloss/arc/hl/hl_fstat.c [new file with mode: 0644]
libgloss/arc/hl/hl_gettimeofday.c [new file with mode: 0644]
libgloss/arc/hl/hl_gw.c [new file with mode: 0644]
libgloss/arc/hl/hl_gw.h [new file with mode: 0644]
libgloss/arc/hl/hl_isatty.c [new file with mode: 0644]
libgloss/arc/hl/hl_lseek.c [new file with mode: 0644]
libgloss/arc/hl/hl_open.c [new file with mode: 0644]
libgloss/arc/hl/hl_read.c [new file with mode: 0644]
libgloss/arc/hl/hl_toolchain.h [new file with mode: 0644]
libgloss/arc/hl/hl_unlink.c [new file with mode: 0644]
libgloss/arc/hl/hl_write.c [new file with mode: 0644]
libgloss/arc/libcfunc.c
libgloss/arc/readme-hostlink.md [new file with mode: 0644]
This page took 0.091809 seconds and 5 git commands to generate.