newlib-cygwin/libgloss/pru
Dimitar Dimitrov 21f0edbf9f libgloss: pru: Fix _open syscal arguments
The _open() C function is declared as having variable arguments in
newlib, so second and third arguments are passed on stack. Add code to
move them into registers, since that's where the PRU simulator expects
them.

Issue was exposed by the GCC test gcc.c-torture/execute/fprintf-2.c,
which relies on tmpnam implementation to pass correct flags to _open.

Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
2022-04-27 11:43:08 +02:00
..
device-specs libgloss: pru: Remove sim ld script 2021-06-09 14:15:56 -04:00
Makefile.in libgloss: Fix PRU & Blackfin mkinstalldirs path 2022-01-27 19:40:10 -05:00
crt0.S Initial PRU port for libgloss and newlib 2019-10-31 14:47:19 -04:00
do_global_dtors.c Initial PRU port for libgloss and newlib 2019-10-31 14:47:19 -04:00
gettimeofday.c Initial PRU port for libgloss and newlib 2019-10-31 14:47:19 -04:00
inbyte.c Initial PRU port for libgloss and newlib 2019-10-31 14:47:19 -04:00
isatty.c Initial PRU port for libgloss and newlib 2019-10-31 14:47:19 -04:00
outbyte.c Initial PRU port for libgloss and newlib 2019-10-31 14:47:19 -04:00
print.c Initial PRU port for libgloss and newlib 2019-10-31 14:47:19 -04:00
putnum.c Initial PRU port for libgloss and newlib 2019-10-31 14:47:19 -04:00
raise.c Initial PRU port for libgloss and newlib 2019-10-31 14:47:19 -04:00
sbrk.c Initial PRU port for libgloss and newlib 2019-10-31 14:47:19 -04:00
stat.c Initial PRU port for libgloss and newlib 2019-10-31 14:47:19 -04:00
syscalls.S libgloss: pru: Fix _open syscal arguments 2022-04-27 11:43:08 +02:00