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

Collapse All | Expand All

(-)devel/boehm-gc/files/patch-freebsd-riscv (+33 lines)
Line 0 Link Here
1
diff --git include/private/gcconfig.h include/private/gcconfig.h
2
index 0743d8fc..e214587c 100644
3
--- include/private/gcconfig.h
4
+++ include/private/gcconfig.h
5
@@ -663,7 +663,7 @@ EXTERN_C_BEGIN
6
 #   endif
7
 #   define mach_type_known
8
 # endif
9
-# if defined(__riscv) && defined(LINUX)
10
+# if defined(__riscv)
11
 #   define RISCV
12
 #   define mach_type_known
13
 # endif
14
@@ -2939,6 +2939,19 @@ EXTERN_C_BEGIN
15
 #     define LINUX_STACKBOTTOM
16
 #     define DYNAMIC_LOADING
17
 #   endif
18
+#   ifdef FREEBSD
19
+#     define OS_TYPE "FREEBSD"
20
+#     ifndef GC_FREEBSD_THREADS
21
+#       define MPROTECT_VDB
22
+#     endif
23
+#     define SIG_SUSPEND SIGUSR1
24
+#     define SIG_THR_RESTART SIGUSR2
25
+#     define FREEBSD_STACKBOTTOM
26
+#     define DYNAMIC_LOADING
27
+      extern char etext[];
28
+#     define DATASTART GC_FreeBSDGetDataStart(0x1000, (ptr_t)etext)
29
+#     define DATASTART_USES_BSDGETDATASTART
30
+#   endif
31
 # endif /* RISCV */
32
 
33
 #if defined(__GLIBC__) && !defined(DONT_USE_LIBC_PRIVATES)

Return to bug 250915