diff include/TaskManager/types.h @ 364:87462f8d3761

uint32 to memaddr(uint64)
author tkaito@localhost.localdomain
date Fri, 24 Jul 2009 17:40:53 +0900
parents 58fd16298954
children f8769040a5df
line wrap: on
line diff
--- a/include/TaskManager/types.h	Fri Jul 24 17:08:08 2009 +0900
+++ b/include/TaskManager/types.h	Fri Jul 24 17:40:53 2009 +0900
@@ -5,6 +5,15 @@
 
 typedef uint32_t uint32;
 typedef uint64_t uint64;
+#ifdef SPU
+typedef memaddr  uint64;
+#else
+#if (sizeof (void*) == 8)
+typedef memaddr  uint64;
+#else
+typedef memaddr  uint32;
+#endif
+#endif
 
 #define SPE_ALIGNMENT 16
 #define SPE_ALIGNMENT_FULL 128