diff options
author | Miguel de Icaza <miguel@gnome.org> | 2009-05-19 04:09:19 +0400 |
---|---|---|
committer | Miguel de Icaza <miguel@gnome.org> | 2009-05-19 04:09:19 +0400 |
commit | 1636d834a423759817b0a37e5aee67634ea52b9d (patch) | |
tree | 12d5bfd699364602eb36bcc67a6d10c0229ad1b5 /libgc/include | |
parent | 74712b87c158df51fc161466b3da8600d8c6a22b (diff) |
2009-05-18 Miguel de Icaza <miguel@novell.com>
* include/private/gcconfig.h: Add support for Linux on the PS3
svn path=/trunk/mono/; revision=134354
Diffstat (limited to 'libgc/include')
-rw-r--r-- | libgc/include/private/gcconfig.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libgc/include/private/gcconfig.h b/libgc/include/private/gcconfig.h index 519f831229d..58bbb525917 100644 --- a/libgc/include/private/gcconfig.h +++ b/libgc/include/private/gcconfig.h @@ -804,6 +804,7 @@ # define STACKBOTTOM ((ptr_t) LMGetCurStackBase()) # define DATAEND /* not needed */ # endif +
# ifdef LINUX # if defined(__powerpc64__) # define ALIGNMENT 8 @@ -882,6 +883,20 @@ # define DATASTART GC_data_start # define DYNAMIC_LOADING # endif +# ifdef SN_TARGET_PS3
+# define NO_GETENV
+# define CPP_WORDSZ 32
+# define ALIGNMENT 4
+ extern int _end [];
+// extern int _dso_handle[];
+ extern int __bss;
+
+# define DATAEND (_end)
+# define DATASTART (__bss)
+# define HEURISTIC2
+# define USE_GENERIC_PUSHREGS
+# endif
+
# ifdef NOSYS # define ALIGNMENT 4 # define OS_TYPE "NOSYS" @@ -2368,8 +2383,13 @@ GC_amiga_get_mem((size_t)bytes + GC_page_size) \ + GC_page_size-1) # else +# if defined(SN_TARGET_PS3)
+ extern void *ps3_get_mem (size_t size);
+# define GET_MEM(bytes) (struct hblk*) ps3_get_mem (bytes)
+# else
extern ptr_t GC_unix_get_mem(); # define GET_MEM(bytes) (struct hblk *)GC_unix_get_mem(bytes) +#endif
# endif # endif # endif |