blob: 49a4f476902f1ab238491af4d875cd35275ecfa7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
diff -ru bdwgc.orig/include/private/gcconfig.h bdwgc/include/private/gcconfig.h
--- bdwgc.orig/include/private/gcconfig.h 2023-02-07 14:35:54.616933050 +0100
+++ bdwgc/include/private/gcconfig.h 2023-02-07 14:41:11.028698667 +0100
@@ -110,6 +110,20 @@
# define LINUX
# endif
+# if defined(__midipix__)
+# define MIDIPIX
+# include <fcntl.h>
+# include <sys/select.h>
+
+# include <psxtypes/psxtypes.h>
+# include <pemagine/pemagine.h>
+# include <ntapi/nt_thread.h>
+
+int __gc_data_start_mark__[1];
+int __gc_data_end_mark__[1];
+#endif
+
+
/* And one for NetBSD: */
# if defined(__NetBSD__)
# define NETBSD
@@ -527,7 +541,7 @@
# define mach_type_known
# elif (defined(__i386__) || defined(i386) || defined(__X86__)) \
&& (defined(DARWIN) || defined(LINUX) || defined(FREEBSD) \
- || defined(NETBSD) || defined(OPENBSD) || defined(QNX))
+ || defined(NETBSD) || defined(OPENBSD) || defined(QNX) || defined(MIDIPIX))
# define I386
# define mach_type_known
# elif (defined(__ia64) || defined(__ia64__)) && defined(LINUX)
@@ -584,7 +598,7 @@
# elif (defined(__x86_64) || defined(__x86_64__) || defined(__amd64__) \
|| defined(__X86_64__)) \
&& (defined(DARWIN) || defined(LINUX) || defined(FREEBSD) \
- || defined(NETBSD) || defined(OPENBSD) || defined(QNX))
+ || defined(NETBSD) || defined(OPENBSD) || defined(QNX) || defined(MIDIPIX))
# define X86_64
# define mach_type_known
# endif
@@ -1464,6 +1478,13 @@
# define SOFT_VDB
# endif
# endif
+# ifdef MIDIPIX
+# define OS_TYPE "MIDIPIX"
+# define DATASTART ((ptr_t)__gc_data_start_mark__)
+# define DATAEND ((ptr_t)__gc_data_end_mark__)
+# define STACKBOTTOM (ptr_t)(((nt_tib *)pe_get_teb_address())->stack_base)
+# define USE_MMAP_ANON
+# endif
# ifdef CYGWIN32
# define WOW64_THREAD_CONTEXT_WORKAROUND
# define DATASTART ((ptr_t)GC_DATASTART) /* From gc.h */
@@ -2259,6 +2280,13 @@
# define SOFT_VDB
# endif
# endif
+# ifdef MIDIPIX
+# define OS_TYPE "MIDIPIX"
+# define DATASTART ((ptr_t)__gc_data_start_mark__)
+# define DATAEND ((ptr_t)__gc_data_end_mark__)
+# define STACKBOTTOM (ptr_t)(((nt_tib *)pe_get_teb_address())->stack_base)
+# define USE_MMAP_ANON
+# endif
# ifdef DARWIN
# define DARWIN_DONT_PARSE_STACK 1
# define STACKBOTTOM ((ptr_t)0x7fff5fc00000)
@@ -2581,7 +2609,7 @@
#if defined(SVR4) || defined(LINUX) || defined(IRIX5) || defined(HPUX) \
|| defined(OPENBSD) || defined(NETBSD) || defined(FREEBSD) \
|| defined(DGUX) || defined(BSD) || defined(HAIKU) || defined(HURD) \
- || defined(AIX) || defined(DARWIN) || defined(OSF1) || defined(QNX)
+ || defined(AIX) || defined(DARWIN) || defined(OSF1) || defined(QNX) || defined(MIDIPIX)
# define UNIX_LIKE /* Basic Unix-like system calls work. */
#endif
|