forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/arch/x86/include/asm/signal.h
....@@ -28,6 +28,19 @@
2828 #define SA_IA32_ABI 0x02000000u
2929 #define SA_X32_ABI 0x01000000u
3030
31
+/*
32
+ * Because some traps use the IST stack, we must keep preemption
33
+ * disabled while calling do_trap(), but do_trap() may call
34
+ * force_sig_info() which will grab the signal spin_locks for the
35
+ * task, which in PREEMPT_RT are mutexes. By defining
36
+ * ARCH_RT_DELAYS_SIGNAL_SEND the force_sig_info() will set
37
+ * TIF_NOTIFY_RESUME and set up the signal to be sent on exit of the
38
+ * trap.
39
+ */
40
+#if defined(CONFIG_PREEMPT_RT)
41
+#define ARCH_RT_DELAYS_SIGNAL_SEND
42
+#endif
43
+
3144 #ifndef CONFIG_COMPAT
3245 typedef sigset_t compat_sigset_t;
3346 #endif
....@@ -35,7 +48,6 @@
3548 #endif /* __ASSEMBLY__ */
3649 #include <uapi/asm/signal.h>
3750 #ifndef __ASSEMBLY__
38
-extern void do_signal(struct pt_regs *regs);
3951
4052 #define __ARCH_HAS_SA_RESTORER
4153