aboutsummaryrefslogtreecommitdiffstats
path: root/community/ocaml/fix-mcontext-fields.patch
diff options
context:
space:
mode:
authorShiz <hi@shiz.me>2017-05-13 06:22:16 +0200
committerShiz <hi@shiz.me>2017-05-13 06:22:16 +0200
commit3054b85bbfbacf6349294421cfc6eb1c29b2c64b (patch)
treedc1cbddfae6ae42a1e21ae47d346d77bdab61f05 /community/ocaml/fix-mcontext-fields.patch
parentde243a0b7a494f2cd02fde83179d68105df447a2 (diff)
downloadaports-3054b85bbfbacf6349294421cfc6eb1c29b2c64b.tar.bz2
aports-3054b85bbfbacf6349294421cfc6eb1c29b2c64b.tar.xz
community/ocaml: fix incorrect ppc64le registers
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])