diff options
Diffstat (limited to 'lang/mono/files/patch-mono_mini_mini-ppc.h')
| -rw-r--r-- | lang/mono/files/patch-mono_mini_mini-ppc.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lang/mono/files/patch-mono_mini_mini-ppc.h b/lang/mono/files/patch-mono_mini_mini-ppc.h new file mode 100644 index 000000000000..a93f779674f2 --- /dev/null +++ b/lang/mono/files/patch-mono_mini_mini-ppc.h @@ -0,0 +1,20 @@ + +$FreeBSD$ + +--- mono/mini/mini-ppc.h.orig ++++ mono/mini/mini-ppc.h +@@ -281,6 +281,14 @@ + #define UCONTEXT_REG_FPRn(ctx, n) ((ctx)->uc_mcontext.__fpregs.__fpu_regs [(n)]) + #define UCONTEXT_REG_NIP(ctx) _UC_MACHINE_PC(ctx) + #define UCONTEXT_REG_LNK(ctx) ((ctx)->uc_mcontext.__gregs [_REG_LR]) ++#elif defined(__FreeBSD__) ++#include <ucontext.h> ++ typedef ucontext_t os_ucontext; ++ ++ #define UCONTEXT_REG_Rn(ctx, n) ((ctx)->uc_mcontext.mc_gpr [(n)]) ++ #define UCONTEXT_REG_FPRn(ctx, n) ((ctx)->uc_mcontext.mc_fpreg [(n)]) ++ #define UCONTEXT_REG_NIP(ctx) ((ctx)->uc_mcontext.mc_srr0) ++ #define UCONTEXT_REG_LNK(ctx) ((ctx)->uc_mcontext.mc_lr) + #else + #error Unknown OS + #endif |
