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

From
Xi Ruoyao <hidden>
Date
2021-08-27 04:27:11
Reply to
Huacai Chen, 2021-08-27
On Fri, 2021-08-27 at 12:23 +0800, Huacai Chen wrote:
Hi, Ruoyao,

On Fri, Aug 27, 2021 at 12:44 AM Xi Ruoyao [off-list ref]
wrote:
quoted
On Tue, 2021-07-06 at 12:18 +0800, Huacai Chen wrote:
quoted
+/**
+ * struct ucontext - user context structure
+ * @uc_flags:
+ * @uc_link:
+ * @uc_stack:
+ * @uc_mcontext:       holds basic processor state
+ * @uc_sigmask:
+ * @uc_extcontext:     holds extended processor state
+ */
+struct ucontext {
+       /* Historic fields matching asm-generic */
+       unsigned long           uc_flags;
+       struct ucontext         *uc_link;
+       stack_t                 uc_stack;
+       struct sigcontext       uc_mcontext;
+       sigset_t                uc_sigmask;
+
+       /* Extended context structures may follow ucontext */
+       unsigned long long      uc_extcontext[0];
+};
+
+#endif /* __LOONGARCH_UAPI_ASM_UCONTEXT_H */
Hi Huacai,

Maybe this is off topic, but I just seen something damn particular
in
your workmates' glibc repo:

https://github.com/loongson/glibc/commit/86d7512949640642cdf767fb6beb077d446b2857
"Modify struct mcontext_t and ucontext_t layout":
The V1 of kernel patchset "match" the old, un-pulblic toolchain, and
the new public toolchain (which you have seen) adjust ucontext, and
the V2 of kernel patchset will be also update ucontext. But anyway,
thank you very much!
Thanks for the explaination! I'll try to incorporate the change into my
next round of system build.
  
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