SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View file

@ -0,0 +1,22 @@
https://savannah.gnu.org/bugs/?58829
Index: src/fault-openbsd-powerpc.h
--- src/fault-openbsd-powerpc.h.orig
+++ src/fault-openbsd-powerpc.h
@@ -17,7 +17,14 @@
#include "fault-openbsd.h"
-/* See the definition of 'struct sigcontext' and 'struct trapframe' in
- openbsd-src/sys/arch/powerpc/include/signal.h. */
+/* For 32-bit PowerPC, see the definition of 'struct sigcontext' and
+ * 'struct trapframe' in openbsd-src/sys/arch/powerpc/include/signal.h.
+ * For 64-bit PowerPC only 'struct sigcontext' is defined in
+ * openbsd-src/sys/arch/power64/include/signal.h.
+ */
+#ifdef __powerpc64__
+#define SIGSEGV_FAULT_STACKPOINTER scp->sc_sp
+#else
#define SIGSEGV_FAULT_STACKPOINTER scp->sc_frame.fixreg[1]
+#endif