From 3054b85bbfbacf6349294421cfc6eb1c29b2c64b Mon Sep 17 00:00:00 2001 From: Shiz Date: Sat, 13 May 2017 06:22:16 +0200 Subject: community/ocaml: fix incorrect ppc64le registers --- community/ocaml/APKBUILD | 2 +- community/ocaml/fix-mcontext-fields.patch | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/community/ocaml/APKBUILD b/community/ocaml/APKBUILD index 79f4dbb8d5..335d83af83 100644 --- a/community/ocaml/APKBUILD +++ b/community/ocaml/APKBUILD @@ -60,4 +60,4 @@ sha512sums="e7ecbd661026d1bb3dfb0416adb15a842514d3b76e85f8b0daa921b10e5773b7d990 71ac807fb1173863b9dcf8e5fb4e651e0155d6cd0e4b327f5457b83fc09e1b5fbe34150c5d8ccd24f0faff1a8419f5ed8310aa60af1f38c2766ccc37dc6c3835 010_all_execstacks.patch 286758402517a1345556d374b0c3fc49eb93f1ec2bb9ccd2ffe1cc043f59d93b154f68eb9ff410020a15d3d8f148b27f249b7f97954b0e8a080cdd32d6014b4a 020_all_configure.patch 61d9cae6c8be7c16ed4aa6fafc533e2879caadbbe0e023775c1d735c0e54e66e94b9ffab8dc0b0b12c19ccf5c389e05f62af822014d202ae54c52943a0639753 050_all_objinfoldflags.patch -9e8fb4465256e95b9272e3be43b4bda6a36451cc40b3d21a40fd5224c60e26e2142a77929b2e6609a7d3b8b271c293706b03fc917078e0215762adb088b1bfca fix-mcontext-fields.patch" +75c67e143a4a05b334bdebbad48ded1e04d383d8ea9b747df2633a5af96b1115b502510faf57753c71bbac38fbc9d9746b167861a63b2fd295901db0d22ea317 fix-mcontext-fields.patch" 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]) -- cgit v1.2.3