|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
diff -ru bdwgc.orig/os_dep.c bdwgc/os_dep.c
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
--- bdwgc.orig/os_dep.c 2017-01-13 01:05:27.201020300 +0100
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
@@ -32,7 +32,7 @@
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
#endif
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
#if defined(UNIX_LIKE) || defined(CYGWIN32) || defined(NACL) \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
- || defined(SYMBIAN)
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
+ || defined(SYMBIAN) || defined(MIDIPIX)
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
# include <fcntl.h>
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
#endif
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
--- bdwgc/include/private/gcconfig.h.orig 2017-01-23 18:47:24.683963226 +0000
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
+++ bdwgc/include/private/gcconfig.h 2017-01-23 18:58:19.917387539 +0000
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
@@ -55,6 +55,10 @@
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
# define LINUX
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
# endif
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
+# if defined(__midipix__)
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
+# define MIDIPIX
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
+# endif
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
+
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
/* And one for QNX: */
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
# if defined(__QNX__)
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
# define I386
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
@@ -293,6 +297,14 @@
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
# define X86_64
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
# define mach_type_known
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
# endif
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
+# if defined(MIDIPIX) && defined(__x86_64__)
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
+# define X86_64
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
+# define mach_type_known
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
+# endif
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
+# if defined(MIDIPIX) && defined(__i386__)
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
+# define I386
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
+# define mach_type_known
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
+# endif
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
# if defined(LINUX) && (defined(__ia64__) || defined(__ia64))
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
# define IA64
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
# define mach_type_known
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
@@ -1426,6 +1438,12 @@
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
# include <gnu/libc-version.h> /* for gnu_get_libc_version() */
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
# endif
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
# endif
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
+# ifdef MIDIPIX
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
+# define OS_TYPE "MIDIPIX"
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
+# define DATASTART (ptr_t)NULL
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
+# define DATAEND (ptr_t)NULL
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
+# define STACKBOTTOM (ptr_t)0x000000
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
+# endif
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
# ifdef CYGWIN32
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
# define OS_TYPE "CYGWIN32"
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
# define DATASTART ((ptr_t)GC_DATASTART)
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
@@ -2439,6 +2457,12 @@
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
# include <gnu/libc-version.h> /* for gnu_get_libc_version() */
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
# endif
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
# endif
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
+# ifdef MIDIPIX
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
+# define OS_TYPE "MIDIPIX"
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
+# define DATASTART (ptr_t)NULL
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
+# define DATAEND (ptr_t)NULL
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
+# define STACKBOTTOM (ptr_t)0x000000
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
+# endif
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
# ifdef DARWIN
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
# define OS_TYPE "DARWIN"
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
# define DARWIN_DONT_PARSE_STACK
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
@@ -2953,7 +2977,7 @@
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
#if defined(GC_IRIX_THREADS) && !defined(IRIX5)
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
# error --> inconsistent configuration
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
#endif
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
-#if defined(GC_LINUX_THREADS) && !defined(LINUX) && !defined(NACL)
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
+#if defined(GC_LINUX_THREADS) && !defined(LINUX) && !defined(NACL) && !defined(MIDIPIX)
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
# error --> inconsistent configuration
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
#endif
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
#if defined(GC_NETBSD_THREADS) && !defined(NETBSD)
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
--- bdwgc/pthread_stop_world.c.orig 2017-01-23 18:47:24.683963226 +0000
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
@@ -20,6 +20,10 @@
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
#if defined(GC_PTHREADS) && !defined(GC_WIN32_THREADS) && \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
!defined(GC_DARWIN_THREADS)
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
+#ifdef MIDIPIX
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
+# include <sys/select.h>
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
+#endif
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
+
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
#ifdef NACL
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
8a0f36 |
# include <unistd.h>
|