|
|
834a5a |
diff -ru bdwgc.orig/include/private/gcconfig.h bdwgc/include/private/gcconfig.h
|
|
|
65c197 |
--- bdwgc.orig/include/private/gcconfig.h
|
|
|
65c197 |
+++ bdwgc/include/private/gcconfig.h
|
|
|
65c197 |
@@ -102,6 +102,27 @@ EXTERN_C_BEGIN
|
|
|
65c197 |
# define LINUX
|
|
|
65c197 |
#endif
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
+# if defined(__midipix__)
|
|
|
65c197 |
+# define MIDIPIX
|
|
|
65c197 |
+# include <fcntl.h>
|
|
|
65c197 |
+# include <sys/select.h>
|
|
Lucio Andrés Illanes Albornoz |
61f3f4 |
+
|
|
|
65c197 |
+# include <psxtypes/psxtypes.h>
|
|
|
65c197 |
+# include <pemagine/pemagine.h>
|
|
|
65c197 |
+# include <ntapi/nt_thread.h>
|
|
Lucio Andrés Illanes Albornoz |
61f3f4 |
+
|
|
|
834a5a |
+int __gc_data_start_mark__[1];
|
|
|
834a5a |
+int __gc_data_end_mark__[1];
|
|
|
621cd7 |
+#endif
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
+
|
|
|
65c197 |
+# ifdef MIDIPIX
|
|
|
65c197 |
+# define OS_TYPE "MIDIPIX"
|
|
|
65c197 |
+# define DATASTART ((ptr_t)__gc_data_start_mark__)
|
|
|
65c197 |
+# define DATAEND ((ptr_t)__gc_data_end_mark__)
|
|
|
65c197 |
+# define STACKBOTTOM (ptr_t)(((nt_tib *)pe_get_teb_address())->stack_base)
|
|
|
65c197 |
+# define USE_MMAP_ANON
|
|
|
65c197 |
+# endif
|
|
|
834a5a |
+
|
|
Lucio Andrés Illanes Albornoz |
77690b |
/* And one for NetBSD: */
|
|
|
65c197 |
#if defined(__NetBSD__)
|
|
|
65c197 |
# define NETBSD
|
|
|
65c197 |
@@ -505,7 +526,7 @@ EXTERN_C_BEGIN
|
|
|
65c197 |
# define mach_type_known
|
|
|
65c197 |
#elif (defined(__i386__) || defined(i386) || defined(__X86__)) \
|
|
|
65c197 |
&& (defined(ANY_BSD) || defined(DARWIN) || defined(EMBOX) \
|
|
|
65c197 |
- || defined(LINUX) || defined(QNX))
|
|
|
65c197 |
+ || defined(LINUX) || defined(QNX) || defined(MIDIPIX))
|
|
|
65c197 |
# define I386
|
|
|
65c197 |
# define mach_type_known
|
|
|
65c197 |
#elif (defined(__ia64) || defined(__ia64__)) && defined(LINUX)
|
|
|
65c197 |
@@ -558,7 +579,7 @@ EXTERN_C_BEGIN
|
|
|
65c197 |
#elif (defined(__x86_64) || defined(__x86_64__) || defined(__amd64__) \
|
|
|
65c197 |
|| defined(__X86_64__)) \
|
|
|
b2982c |
&& (defined(ANY_BSD) || defined(COSMO) || defined(DARWIN) \
|
|
|
b2982c |
- || defined(LINUX) || defined(QNX))
|
|
|
b2982c |
+ || defined(LINUX) || defined(QNX) || defined(MIDIPIX))
|
|
|
65c197 |
# define X86_64
|
|
|
65c197 |
# define mach_type_known
|
|
|
65c197 |
#endif
|
|
|
65c197 |
@@ -1540,6 +1561,13 @@ extern char *_STACKTOP;
|
|
|
65c197 |
# define DATAEND ((ptr_t)(&_end))
|
|
|
65c197 |
# define GETPAGESIZE() 4096
|
|
|
65c197 |
# endif
|
|
|
65c197 |
+# ifdef MIDIPIX
|
|
|
65c197 |
+# define OS_TYPE "MIDIPIX"
|
|
|
65c197 |
+# define DATASTART ((ptr_t)__gc_data_start_mark__)
|
|
|
65c197 |
+# define DATAEND ((ptr_t)__gc_data_end_mark__)
|
|
|
65c197 |
+# define STACKBOTTOM (ptr_t)(((nt_tib *)pe_get_teb_address())->stack_base)
|
|
|
65c197 |
+# define USE_MMAP_ANON
|
|
|
65c197 |
+# endif
|
|
|
65c197 |
# ifdef DARWIN
|
|
|
65c197 |
# define DARWIN_DONT_PARSE_STACK 1
|
|
|
65c197 |
# define STACKBOTTOM ((ptr_t)0xc0000000)
|
|
|
65c197 |
@@ -2604,7 +2632,7 @@ EXTERN_C_BEGIN
|
|
|
b2982c |
#if defined(AIX) || defined(ANY_BSD) || defined(BSD) || defined(COSMO) \
|
|
|
b2982c |
|| defined(DARWIN) || defined(DGUX) || defined(HAIKU) || defined(HPUX) \
|
|
|
b2982c |
|| defined(HURD) || defined(IRIX5) || defined(LINUX) || defined(OSF1) \
|
|
|
b2982c |
- || defined(QNX) || defined(SVR4)
|
|
|
b2982c |
+ || defined(QNX) || defined(SVR4) || defined(MIDIPIX)
|
|
|
65c197 |
# define UNIX_LIKE /* Basic Unix-like system calls work. */
|
|
Lucio Andrés Illanes Albornoz |
77690b |
#endif
|
|
Lucio Andrés Illanes Albornoz |
77690b |
|