Re: [PATCH 10/19] LoongArch: Add signal handling support

From
Arnd Bergmann <arnd@arndb.de>
Date
2021-07-08 13:31:29
Reply to
Huacai Chen, 2021-07-08
On Thu, Jul 8, 2021 at 3:04 PM Huacai Chen [off-list ref] wrote:
On Tue, Jul 6, 2021 at 6:17 PM Arnd Bergmann [off-list ref] wrote:
quoted
On Tue, Jul 6, 2021 at 6:18 AM Huacai Chen [off-list ref] wrote:
quoted
+
+#ifndef _NSIG
+#define _NSIG          128
+#endif
Everything else uses 64 here, except for MIPS.
Once before we also wanted to use 64, but we also want to use LBT to
execute X86/MIPS/ARM binaries, so we chose the largest value (128).
Some applications, such as sighold02 in LTP, will fail if _NSIG is not
big enough.
Have you tried separating the in-kernel _NSIG from the number used
in the loongarch ABI? This may require a few changes to architecture
independent signal handling code, but I think it would be a cleaner
solution, and make it easier to port existing software without having
to special-case loongarch along with mips.

      Arnd
Thread (110 messages) 110 messages, 12 authors, last reply 2021-08-27
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help