[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 06/21] linux-user/cris: Implement setup_sigtramp
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH 06/21] linux-user/cris: Implement setup_sigtramp |
Date: |
Wed, 16 Jun 2021 18:37:53 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 |
On 6/16/21 3:11 AM, Richard Henderson wrote:
> Split out setup_sigreturn so that we can continue to
> initialize the words on the stack, as documented.
> However, use the off-stack trampoline.
>
> Cc: Edgar E. Iglesias <edgar.iglesias@gmail.com>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
> linux-user/cris/target_signal.h | 2 ++
> linux-user/cris/signal.c | 29 +++++++++++++++++++++--------
> 2 files changed, 23 insertions(+), 8 deletions(-)
> +void setup_sigtramp(abi_ulong sigtramp_page)
> +{
> + uint16_t *tramp = lock_user(VERIFY_WRITE, sigtramp_page, 4 * 2, 0);
3 * 2?
> + assert(tramp != NULL);
> +
> + default_sigreturn = sigtramp_page;
> + setup_sigreturn(tramp);
> +
> + unlock_user(tramp, sigtramp_page, 4 * 2);
Ditto.
> +}
>
- RE: [PATCH 07/21] linux-user/hexagon: Implement setup_sigtramp, (continued)
[PATCH 08/21] linux-user/hppa: Document non-use of setup_sigtramp, Richard Henderson, 2021/06/15
[PATCH 10/21] linux-user/m68k: Implement setup_sigtramp, Richard Henderson, 2021/06/15
[PATCH 11/21] linux-user/microblaze: Implement setup_sigtramp, Richard Henderson, 2021/06/15
[PATCH 06/21] linux-user/cris: Implement setup_sigtramp, Richard Henderson, 2021/06/15
- Re: [PATCH 06/21] linux-user/cris: Implement setup_sigtramp,
Philippe Mathieu-Daudé <=
[PATCH 12/21] linux-user/mips: Implement setup_sigtramp, Richard Henderson, 2021/06/15
[PATCH 14/21] linux-user/openrisc: Implement setup_sigtramp, Richard Henderson, 2021/06/15
[PATCH 13/21] linux-user/nios2: Document non-use of setup_sigtramp, Richard Henderson, 2021/06/15
[PATCH 17/21] linux-user/s390x: Implement setup_sigtramp, Richard Henderson, 2021/06/15
[PATCH 21/21] linux-user: Remove default for TARGET_ARCH_HAS_SIGTRAMP_PAGE, Richard Henderson, 2021/06/15