Module Name: src
Committed By: christos
Date: Thu Oct 28 11:07:08 UTC 2021
Modified Files:
src/sys/arch/hppa/include: signal.h
Log Message:
We still need struct sigcontext for longjmp.
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/hppa/include/signal.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/hppa/include/signal.h
diff -u src/sys/arch/hppa/include/signal.h:1.10 src/sys/arch/hppa/include/signal.h:1.11
--- src/sys/arch/hppa/include/signal.h:1.10 Tue Oct 26 22:34:00 2021
+++ src/sys/arch/hppa/include/signal.h Thu Oct 28 07:07:07 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: signal.h,v 1.10 2021/10/27 02:34:00 thorpej Exp $ */
+/* $NetBSD: signal.h,v 1.11 2021/10/28 11:07:07 christos Exp $ */
/* $OpenBSD: signal.h,v 1.1 1998/06/23 19:45:27 mickey Exp $ */
@@ -41,4 +41,27 @@ typedef int sig_atomic_t;
#include <machine/trap.h> /* codes for SIGILL, SIGFPE */
#endif
+#if defined(_LIBC)
+/*
+ * Information pushed on stack when a signal is delivered.
+ * This is used by the kernel to restore state following
+ * execution of the signal handler. It is also made available
+ * to the handler to allow it to restore state properly if
+ * a non-standard exit is performed.
+ */
+struct sigcontext {
+ int sc_onstack; /* sigstack state to restore */
+ int __sc_mask13; /* signal mask to restore (old style) */
+ int sc_sp; /* sp to restore */
+ int sc_fp; /* fp to restore */
+ int sc_ap; /* ap to restore */
+ int sc_pcsqh; /* pc space queue (head) to restore */
+ int sc_pcoqh; /* pc offset queue (head) to restore */
+ int sc_pcsqt; /* pc space queue (tail) to restore */
+ int sc_pcoqt; /* pc offset queue (tail) to restore */
+ int sc_ps; /* psl to restore */
+ sigset_t sc_mask; /* signal mask to restore (new style) */
+};
+#endif
+
#endif /* _HPPA_SIGNAL_H__ */