newlib-cygwin/libgloss/pru
Dimitar Dimitrov a5cd471c7c pru: Fix memory corruption on syscall return
In the initial code I missed one level of pointer indirection. Instead
of storing errno in impure_data, _impure_ptr was corrupted.

Only simulator is impacted. Real targets have no OS and no syscalls.

This resolves a bunch of stdio cases from the GCC testsuite:
  FAIL->PASS: gcc.c-torture/execute/printf-2.c   -O0  execution test

Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
2020-10-14 10:54:22 -04:00
..
device-specs Initial PRU port for libgloss and newlib 2020-10-14 10:54:03 -04:00
ldscripts Initial PRU port for libgloss and newlib 2020-10-14 10:54:03 -04:00
Makefile.in Initial PRU port for libgloss and newlib 2020-10-14 10:54:03 -04:00
aclocal.m4 Initial PRU port for libgloss and newlib 2020-10-14 10:54:03 -04:00
configure Initial PRU port for libgloss and newlib 2020-10-14 10:54:03 -04:00
configure.in Initial PRU port for libgloss and newlib 2020-10-14 10:54:03 -04:00
crt0.S Initial PRU port for libgloss and newlib 2020-10-14 10:54:03 -04:00
do_global_dtors.c Initial PRU port for libgloss and newlib 2020-10-14 10:54:03 -04:00
gettimeofday.c Initial PRU port for libgloss and newlib 2020-10-14 10:54:03 -04:00
inbyte.c Initial PRU port for libgloss and newlib 2020-10-14 10:54:03 -04:00
isatty.c Initial PRU port for libgloss and newlib 2020-10-14 10:54:03 -04:00
outbyte.c Initial PRU port for libgloss and newlib 2020-10-14 10:54:03 -04:00
print.c Initial PRU port for libgloss and newlib 2020-10-14 10:54:03 -04:00
putnum.c Initial PRU port for libgloss and newlib 2020-10-14 10:54:03 -04:00
raise.c Initial PRU port for libgloss and newlib 2020-10-14 10:54:03 -04:00
sbrk.c Initial PRU port for libgloss and newlib 2020-10-14 10:54:03 -04:00
stat.c Initial PRU port for libgloss and newlib 2020-10-14 10:54:03 -04:00
syscalls.S pru: Fix memory corruption on syscall return 2020-10-14 10:54:22 -04:00