All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Hexagon: Swap SIGRGMAX-1 and SIGRTMIN+1
@ 2019-11-19 19:06 Taylor Simpson
  2019-11-19 19:31 ` Peter Maydell
  0 siblings, 1 reply; 9+ messages in thread
From: Taylor Simpson @ 2019-11-19 19:06 UTC (permalink / raw)
  To: riku.voipio, laurent, qemu-devel; +Cc: Taylor Simpson

Signed-off-by: Taylor Simpson <tsimpson@quicinc.com>
---
 linux-user/signal.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/linux-user/signal.c b/linux-user/signal.c
index 5ca6d62..ce3d27f 100644
--- a/linux-user/signal.c
+++ b/linux-user/signal.c
@@ -72,6 +72,14 @@ static uint8_t host_to_target_signal_table[_NSIG] = {
        over a single host signal.  */
     [__SIGRTMIN] = __SIGRTMAX,
     [__SIGRTMAX] = __SIGRTMIN,
+#ifdef TARGET_HEXAGON
+    /*
+     * Hexagon uses the same signal for pthread cancel as the host pthreads,
+     * so cannot be overridden.
+     * Therefore, we map Hexagon signal to a different host signal.
+     */
+    [__SIGRTMAX - 1] = __SIGRTMIN + 1,
+#endif
 };
 static uint8_t target_to_host_signal_table[_NSIG];
 
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-11-21 11:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-19 19:06 [PATCH] Hexagon: Swap SIGRGMAX-1 and SIGRTMIN+1 Taylor Simpson
2019-11-19 19:31 ` Peter Maydell
2019-11-20  5:23   ` Taylor Simpson
2019-11-20  8:09   ` Laurent Vivier
2019-11-20 10:45     ` Peter Maydell
2019-11-20 10:54       ` Laurent Vivier
2019-11-20 11:00         ` Peter Maydell
2019-11-20 12:54           ` Taylor Simpson
2019-11-21 11:29             ` Peter Maydell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.