semihosting: Create semihost_sys_poll_one
commit1b9177f7495086f1595d7c989c810013f1c9eb5a
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 2 May 2022 18:15:40 +0000 (2 11:15 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 27 Jun 2022 23:11:37 +0000 (28 04:41 +0530)
tree41469c64b92e70a3b352c170d28cedc590e09dcc
parent2d010c2719da360d44a5c44d279d49eca21c5de8
semihosting: Create semihost_sys_poll_one

This will be used for implementing the xtensa select_one
system call.  Choose "poll" over "select" so that we can
reuse Glib's g_poll constants and to avoid struct timeval.

Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
include/semihosting/console.h
include/semihosting/syscalls.h
semihosting/console.c
semihosting/syscalls.c