|
From: | Richard Henderson |
Subject: | Re: [PATCH v2 2/7] linux-user/alpha: Rename the sigaction restorer field |
Date: | Fri, 23 Apr 2021 10:04:20 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 |
On 4/23/21 3:16 AM, Alex Bennée wrote:
Richard Henderson <richard.henderson@linaro.org> writes:Use ka_restorer, in line with TARGET_ARCH_HAS_KA_RESTORER vs TARGET_ARCH_HAS_SA_RESTORER, since Alpha passes this field as a syscall argument.I'm still slightly confused - but that's to be expected from signals :-/ Anyway I understand that the SA_RESTORER points to the vdso trampoline (at least according to man sigreturn). What is ka_restorer - if this the in sigframe restorer?
Both sa_restorer and ka_restorer pre-date the vdso trampoline. They allow libc to register a trampoline itself.
The difference is that sa_restorer is a field in struct sigaction, and ka_restorer is an extra argument to the sigaction syscall. Different targets used different approaches.
- abi_ulong sa_restorer; + abi_ulong ka_restorer; };Maybe this is something we could expand a little on in the difference between the two here (or maybe in the later commit?).
Perhaps elsewhere. This change is simply to make alpha line up with the generic code that will replace it.
r~
[Prev in Thread] | Current Thread | [Next in Thread] |