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.patch10
1 files changed, 5 insertions, 5 deletions
diff --git a/community/ocaml/fix-mcontext-fields.patch b/community/ocaml/fix-mcontext-fields.patch
index 846a0d88d3..e47f348b23 100644
--- a/community/ocaml/fix-mcontext-fields.patch
+++ b/community/ocaml/fix-mcontext-fields.patch
@@ -32,11 +32,11 @@ diff -Nru a/asmrun/signals_osdep.h b/asmrun/signals_osdep.h
- #define CONTEXT_SP (context->regs->gpr[1])
+
+ #ifdef __powerpc64__
-+ #define CONTEXT_PC (context->regs->gp_regs[32])
-+ #define CONTEXT_EXCEPTION_POINTER (context->regs->gp_regs[29])
-+ #define CONTEXT_YOUNG_LIMIT (context->regs->gp_regs[30])
-+ #define CONTEXT_YOUNG_PTR (context->regs->gp_regs[31])
-+ #define CONTEXT_SP (context->regs->gp_regs[1])
++ #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])