]> sourceware.org Git - newlib-cygwin.git/commit
RISC-V: fix setting up std streams in init_semihosting()
authorVenkata Ramanaiah Nalamothu <quic_vnalamot@quicinc.com>
Wed, 3 Jan 2024 06:52:16 +0000 (12:22 +0530)
committerCorinna Vinschen <corinna@vinschen.de>
Wed, 10 Jan 2024 09:46:56 +0000 (10:46 +0100)
commitc419bbb341528a97d2de88539caf200c9dec1ffb
tree3e6cf9e8142431369664c05d8fefe7cb1e7ce94e
parent9a863f713af24a3b18c165c640c936a4c0b707ea
RISC-V: fix setting up std streams in init_semihosting()

Currently init_semihosting() assumes the return value from _open()
call as the file descriptor handle and that is incorrect.

The semihost _open() call returns the fdtable index returned by the
__add_fdentry() for the file opened.
libgloss/riscv/semihost-sys_fdtable.c
This page took 0.030692 seconds and 5 git commands to generate.