diff options
Diffstat (limited to 'community/ocaml/fix-s390x-mcontext-fields.patch')
-rw-r--r-- | community/ocaml/fix-s390x-mcontext-fields.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/community/ocaml/fix-s390x-mcontext-fields.patch b/community/ocaml/fix-s390x-mcontext-fields.patch new file mode 100644 index 0000000000..71435f284a --- /dev/null +++ b/community/ocaml/fix-s390x-mcontext-fields.patch @@ -0,0 +1,20 @@ +diff -Nru a/asmrun/signals_osdep.h b/asmrun/signals_osdep.h +--- a/asmrun/signals_osdep.h 2016-11-04 16:08:24.000000000 +0000 ++++ b/asmrun/signals_osdep.h 2017-05-13 03:16:28.749615533 +0000 +@@ -314,11 +314,11 @@ + sigact.sa_flags = 0 + + typedef unsigned long context_reg; +- #define CONTEXT_PC (context->sregs->regs.psw.addr) +- #define CONTEXT_EXCEPTION_POINTER (context->sregs->regs.gprs[13]) +- #define CONTEXT_YOUNG_LIMIT (context->sregs->regs.gprs[10]) +- #define CONTEXT_YOUNG_PTR (context->sregs->regs.gprs[11]) +- #define CONTEXT_SP (context->sregs->regs.gprs[15]) ++ #define CONTEXT_PC (context->sregs->psw.addr) ++ #define CONTEXT_EXCEPTION_POINTER (context->sregs->gprs[13]) ++ #define CONTEXT_YOUNG_LIMIT (context->sregs->gprs[10]) ++ #define CONTEXT_YOUNG_PTR (context->sregs->gprs[11]) ++ #define CONTEXT_SP (context->sregs->gprs[15]) + + /****************** PowerPC, BSD */ + |