diff options
author | Shiz <hi@shiz.me> | 2017-05-13 06:22:16 +0200 |
---|---|---|
committer | Shiz <hi@shiz.me> | 2017-05-13 06:22:16 +0200 |
commit | 3054b85bbfbacf6349294421cfc6eb1c29b2c64b (patch) | |
tree | dc1cbddfae6ae42a1e21ae47d346d77bdab61f05 /community/ocaml/fix-mcontext-fields.patch | |
parent | de243a0b7a494f2cd02fde83179d68105df447a2 (diff) | |
download | aports-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.patch | 10 |
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]) |