]> sourceware.org Git - newlib-cygwin.git/commit
pru: Fix memory corruption on syscall return
authorDimitar Dimitrov <dimitar@dinux.eu>
Wed, 3 Jun 2020 16:14:22 +0000 (19:14 +0300)
committerCorinna Vinschen <corinna@vinschen.de>
Thu, 2 Jul 2020 09:00:33 +0000 (11:00 +0200)
commit70cd4cbe651388897539fe38d2610e9bb733c5a8
tree896d272daa155de64789654ab79f180755912bd3
parent5266248285bb3d2d012abd8a73957a0368f252ff
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>
libgloss/pru/syscalls.S
This page took 0.028092 seconds and 5 git commands to generate.