From e820a0e3a8e322f10127e33d7d0a2bdaadbee50b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Tarti=C3=A8re?= Date: Wed, 28 Jul 2010 18:02:39 +0000 Subject: Update to 2.6.7. --- lang/mono/files/patch-mono_utils_mono-sigcontext.h | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 lang/mono/files/patch-mono_utils_mono-sigcontext.h (limited to 'lang/mono/files/patch-mono_utils_mono-sigcontext.h') diff --git a/lang/mono/files/patch-mono_utils_mono-sigcontext.h b/lang/mono/files/patch-mono_utils_mono-sigcontext.h new file mode 100644 index 000000000000..3b6c88da1e30 --- /dev/null +++ b/lang/mono/files/patch-mono_utils_mono-sigcontext.h @@ -0,0 +1,25 @@ + +$FreeBSD$ + +--- mono/utils/mono-sigcontext.h.orig ++++ mono/utils/mono-sigcontext.h +@@ -80,6 +80,19 @@ + + #ifdef __FreeBSD__ + #define UCONTEXT_GREGS(ctx) &(((ucontext_t*)(ctx))->uc_mcontext) ++ #define UCONTEXT_REG_RAX(ctx) (((ucontext_t*)(ctx))->uc_mcontext.mc_rax) ++ #define UCONTEXT_REG_RBX(ctx) (((ucontext_t*)(ctx))->uc_mcontext.mc_rbx) ++ #define UCONTEXT_REG_RCX(ctx) (((ucontext_t*)(ctx))->uc_mcontext.mc_rcx) ++ #define UCONTEXT_REG_RDX(ctx) (((ucontext_t*)(ctx))->uc_mcontext.mc_rdx) ++ #define UCONTEXT_REG_RBP(ctx) (((ucontext_t*)(ctx))->uc_mcontext.mc_rbp) ++ #define UCONTEXT_REG_RSP(ctx) (((ucontext_t*)(ctx))->uc_mcontext.mc_rsp) ++ #define UCONTEXT_REG_RSI(ctx) (((ucontext_t*)(ctx))->uc_mcontext.mc_rsi) ++ #define UCONTEXT_REG_RDI(ctx) (((ucontext_t*)(ctx))->uc_mcontext.mc_rdi) ++ #define UCONTEXT_REG_RIP(ctx) (((ucontext_t*)(ctx))->uc_mcontext.mc_rip) ++ #define UCONTEXT_REG_R12(ctx) (((ucontext_t*)(ctx))->uc_mcontext.mc_r12) ++ #define UCONTEXT_REG_R13(ctx) (((ucontext_t*)(ctx))->uc_mcontext.mc_r13) ++ #define UCONTEXT_REG_R14(ctx) (((ucontext_t*)(ctx))->uc_mcontext.mc_r14) ++ #define UCONTEXT_REG_R15(ctx) (((ucontext_t*)(ctx))->uc_mcontext.mc_r15) + #elif defined(__OpenBSD__) + /* OpenBSD/amd64 has no gregs array, ucontext_t == sigcontext */ + #define UCONTEXT_REG_RAX(ctx) ((ctx)->sc_rax) -- cgit v1.2.3