qemu-trivial
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 17/24] bsd-user/arm/target_arch_signal.h: arm specific signal


From: Warner Losh
Subject: Re: [PATCH 17/24] bsd-user/arm/target_arch_signal.h: arm specific signal registers and stack
Date: Thu, 28 Oct 2021 10:48:22 -0600



On Thu, Oct 28, 2021 at 10:18 AM Richard Henderson <richard.henderson@linaro.org> wrote:
On 10/19/21 9:44 AM, Warner Losh wrote:
> +#define TARGET_INSN_SIZE    4       /* arm instruction size */

What is this for?  arm max insn size?

It's used a few lines below:

+#define TARGET_SZSIGCODE    ((abi_ulong)(9 * TARGET_INSN_SIZE))

which is a fancy way of getting the sizeof the sigtramp handler that's copied onto the stack and used in the setup.
It's then used in bsd-user/arm/target_arch_signal.h because it doesn't have visibility to target_arch_sigtramp.h's
namespace to get the size.

It's likely a 'todo' cleanup to make this less hard-coded.

Warner
 
Otherwise,
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~

reply via email to

[Prev in Thread] Current Thread [Next in Thread]