aboutsummaryrefslogtreecommitdiffstats
path: root/community/ocaml/fix-mcontext-fields.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/ocaml/fix-mcontext-fields.patch')
-rw-r--r--community/ocaml/fix-mcontext-fields.patch27
1 files changed, 0 insertions, 27 deletions
diff --git a/community/ocaml/fix-mcontext-fields.patch b/community/ocaml/fix-mcontext-fields.patch
deleted file mode 100644
index 23b4875d21f..00000000000
--- a/community/ocaml/fix-mcontext-fields.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-diff -Nru a/runtime/signals_osdep.h b/runtime/signals_osdep.h
---- a/runtime/signals_osdep.h 2019-06-14 08:21:51.000000000 -0300
-+++ b/runtime/signals_osdep.h 2019-07-16 14:21:56.751434439 -0300
-@@ -297,11 +297,19 @@
- sigact.sa_flags = 0
-
- typedef unsigned long context_reg;
-- #define CONTEXT_PC (context->regs->nip)
-- #define CONTEXT_EXCEPTION_POINTER (context->regs->gpr[29])
-- #define CONTEXT_YOUNG_LIMIT (context->regs->gpr[30])
-- #define CONTEXT_YOUNG_PTR (context->regs->gpr[31])
-- #define CONTEXT_SP (context->regs->gpr[1])
-+ #ifdef __powerpc64__
-+ #define CONTEXT_PC (context->gp_regs[32])
-+ #define CONTEXT_EXCEPTION_POINTER (context->gp_regs[29])
-+ #define CONTEXT_YOUNG_LIMIT (context->gp_regs[30])
-+ #define CONTEXT_YOUNG_PTR (context->gp_regs[31])
-+ #define CONTEXT_SP (context->gp_regs[1])
-+ #else
-+ #define CONTEXT_PC (context->regs->nip)
-+ #define CONTEXT_EXCEPTION_POINTER (context->regs->gpr[29])
-+ #define CONTEXT_YOUNG_LIMIT (context->regs->gpr[30])
-+ #define CONTEXT_YOUNG_PTR (context->regs->gpr[31])
-+ #define CONTEXT_SP (context->regs->gpr[1])
-+ #endif
-
- /****************** PowerPC, NetBSD */