View | Details | Raw Unified | Return to bug 140362 | Differences between
and this patch

Collapse All | Expand All

(-)/tmp/mono/Makefile (-1 / +1 lines)
Lines 42-48 Link Here
42
MAKE_ENV=	MONO_SHARED_DIR="${MONO_SHARED_DIR}" \
42
MAKE_ENV=	MONO_SHARED_DIR="${MONO_SHARED_DIR}" \
43
		LC_ALL=C
43
		LC_ALL=C
44
44
45
ONLY_FOR_ARCHS=	i386 amd64
45
ONLY_FOR_ARCHS=	i386 amd64 powerpc
46
46
47
MAN1=		al.1 cert2spc.1 certmgr.1 chktrust.1 cilc.1 csharp.1 disco.1 \
47
MAN1=		al.1 cert2spc.1 certmgr.1 chktrust.1 cilc.1 csharp.1 disco.1 \
48
		dtd2xsd.1 gacutil.1 genxs.1 httpcfg.1 ilasm.1 jay.1 macpack.1 \
48
		dtd2xsd.1 gacutil.1 genxs.1 httpcfg.1 ilasm.1 jay.1 macpack.1 \
(-)/tmp/mono/files/patch-configure (-2 / +11 lines)
Lines 22-28 Link Here
22
 		;;
22
 		;;
23
 	*-*-*openbsd*)
23
 	*-*-*openbsd*)
24
 		platform_win32=no
24
 		platform_win32=no
25
@@ -39146,8 +39147,8 @@
25
@@ -39414,8 +39415,8 @@
26
 INTERP_SUPPORTED=no
26
 INTERP_SUPPORTED=no
27
 LIBC="libc.so.6"
27
 LIBC="libc.so.6"
28
 INTL="libc.so.6"
28
 INTL="libc.so.6"
Lines 32-35 Link Here
32
+SQLITE3="libsqlite3.so.8"
32
+SQLITE3="libsqlite3.so.8"
33
 X11="libX11.so"
33
 X11="libX11.so"
34
 
34
 
35
 jit_wanted=false
35
 sizeof_register="SIZEOF_VOID_P"
36
@@ -39675,7 +39676,7 @@
37
 		jit_wanted=true
38
 		;;
39
 	macppc-*-openbsd* | powerpc*-*-linux* | powerpc-*-openbsd* | \
40
-        powerpc-*-sysv* | powerpc-*-darwin* | powerpc-*-netbsd* )
41
+        powerpc-*-sysv* | powerpc-*-darwin* | powerpc-*-netbsd* | powerpc-*-freebsd* )
42
 		if test "x$ac_cv_sizeof_void_p" = "x8"; then
43
 			TARGET=POWERPC64;
44
 			CPPFLAGS="$CPPFLAGS -D__mono_ppc__ -D__mono_ppc64__"
(-)/tmp/mono/files/patch-mono_mini_mini-ppc.h (+20 lines)
Line 0 Link Here
1
2
$FreeBSD$
3
4
--- mono/mini/mini-ppc.h.orig
5
+++ mono/mini/mini-ppc.h
6
@@ -281,6 +281,14 @@
7
 	#define UCONTEXT_REG_FPRn(ctx, n) ((ctx)->uc_mcontext.__fpregs.__fpu_regs [(n)])
8
 	#define UCONTEXT_REG_NIP(ctx)     _UC_MACHINE_PC(ctx)
9
 	#define UCONTEXT_REG_LNK(ctx)     ((ctx)->uc_mcontext.__gregs [_REG_LR])
10
+#elif defined(__FreeBSD__)
11
+#include <ucontext.h>
12
+	typedef ucontext_t os_ucontext;
13
+
14
+	#define UCONTEXT_REG_Rn(ctx, n)   ((ctx)->uc_mcontext.mc_gpr [(n)])
15
+	#define UCONTEXT_REG_FPRn(ctx, n) ((ctx)->uc_mcontext.mc_fpreg [(n)])
16
+	#define UCONTEXT_REG_NIP(ctx)     ((ctx)->uc_mcontext.mc_srr0)
17
+	#define UCONTEXT_REG_LNK(ctx)     ((ctx)->uc_mcontext.mc_lr)
18
 #else
19
 #error Unknown OS
20
 #endif

Return to bug 140362