diff options
author | Romain Tartière <romain@FreeBSD.org> | 2010-07-28 18:02:39 +0000 |
---|---|---|
committer | Romain Tartière <romain@FreeBSD.org> | 2010-07-28 18:02:39 +0000 |
commit | e820a0e3a8e322f10127e33d7d0a2bdaadbee50b (patch) | |
tree | cbd3c8d62677c80b4aeb2a4fec686fcfca55f41e /lang/mono/files/patch-mono_utils_mono-sigcontext.h | |
parent | Change maintainer address to my new @FreeBSD.org (diff) |
Update to 2.6.7.
Diffstat (limited to 'lang/mono/files/patch-mono_utils_mono-sigcontext.h')
-rw-r--r-- | lang/mono/files/patch-mono_utils_mono-sigcontext.h | 25 |
1 files changed, 25 insertions, 0 deletions
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) |