summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/private/gcconfig.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h
index af0e930..70026e3 100644
--- a/include/private/gcconfig.h
+++ b/include/private/gcconfig.h
@@ -538,14 +538,18 @@
# define OCTOPOS
# if defined(__sparc__)
# define SPARC
+# elif defined(__x86_64__)
+# define X86_64
# else
# define I386
# endif
# define mach_type_known
# define GC_OCTOPOS_THREADS
-# define DATASTART2 ((ptr_t)get_tlm_start())
-# define DATAEND2 (((ptr_t)get_tlm_start()) + get_tlm_size())
+# ifndef __x86_64__
+# define DATASTART2 ((ptr_t)get_tlm_start())
+# define DATAEND2 (((ptr_t)get_tlm_start()) + get_tlm_size())
+# endif
# undef GC_GCJ_SUPPORT
@@ -2920,7 +2924,11 @@
void *ps3_get_mem(size_t size);
# define GET_MEM(bytes) (struct hblk*)ps3_get_mem(bytes)
# elif defined(OCTOPOS)
-# define GET_MEM(bytes) (struct hblk*)mem_map(MEM_SHM, bytes);
+# if defined(__x86_64__)
+# define GET_MEM(bytes) (struct hblk*)mem_map(MEM_TLM_LOCAL, bytes);
+# else
+# define GET_MEM(bytes) (struct hblk*)mem_map(MEM_SHM, bytes);
+# endif
# else
ptr_t GC_unix_get_mem(GC_word bytes);
# define GET_MEM(bytes) (struct hblk *)GC_unix_get_mem(bytes)