linux-user: Handle rt_sigaction correctly for SPARC
commit78bfef72fbf8705f002c5c57cf3f1d3b8e83399e
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 6 Nov 2017 18:33:26 +0000 (6 18:33 +0000)
committerRiku Voipio <riku.voipio@linaro.org>
Tue, 7 Nov 2017 19:59:51 +0000 (7 21:59 +0200)
treea34b8c1c486f87655de8ae7f0dc5c0eaf8ca0520
parent8d8cb956e0a679fcf0a8e24f1b2f34e038cdd48e
linux-user: Handle rt_sigaction correctly for SPARC

SPARC is like Alpha in its handling of the rt_sigaction syscall:
it takes an extra parameter 'restorer' which needs to be copied
into the sa_restorer field of the sigaction struct. The order
of the arguments differs slightly between SPARC and Alpha but
the implementation is otherwise the same. (Compare the
rt_sigaction() functions in arch/sparc/kernel/sys_sparc_64.c
and arch/alpha/kernel/signal.c.)

Note that this change is somewhat moot until SPARC acquires
support for actually delivering RT signals.

Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/syscall.c