Got threads to work on 64-bit irix. Had to add JB_TWEAKING_ORIGIN flag to
authorMilind Bhandarkar <milind@cs.uiuc.edu>
Tue, 25 Mar 1997 23:09:00 +0000 (23:09 +0000)
committerMilind Bhandarkar <milind@cs.uiuc.edu>
Tue, 25 Mar 1997 23:09:00 +0000 (23:09 +0000)
all the conv-mach.h files. Also, _PAGESZ was undefined on irix. Added
code to memory.c to make it a static variable.

36 files changed:
src/arch/cm5/conv-mach.h
src/arch/exemplar/conv-mach.h
src/arch/ncube2/conv-mach.h
src/arch/net-aix-ppc/conv-mach.h
src/arch/net-hp-cc/conv-mach.h
src/arch/net-hp/conv-mach.h
src/arch/net-irix-64/conv-mach.h
src/arch/net-irix/conv-mach.h
src/arch/net-sol-cc/conv-mach.h
src/arch/net-sol-smp/conv-mach.h
src/arch/net-sol/conv-mach.h
src/arch/net-sun/conv-mach.h
src/arch/paragon-osf/conv-mach.h
src/arch/paragon-sunmos/conv-mach.h
src/arch/sim-hp/conv-mach.h
src/arch/sim-irix-64/conv-mach.h
src/arch/sim-irix/conv-mach.h
src/arch/sim-rs6k/conv-mach.h
src/arch/sim-sol/conv-mach.h
src/arch/sim-sun/conv-mach.h
src/arch/sp1/conv-mach.h
src/arch/t3d/conv-mach.h
src/arch/tcp-hp/conv-mach.h
src/arch/tcp-sol/conv-mach.h
src/arch/uth-hp-cc/conv-mach.h
src/arch/uth-hp/conv-mach.h
src/arch/uth-irix-64/conv-mach.csh [new file with mode: 0755]
src/arch/uth-irix-64/conv-mach.h [new file with mode: 0644]
src/arch/uth-irix/conv-mach.h
src/arch/uth-rs6k/conv-mach.h
src/arch/uth-sol-cc/conv-mach.h
src/arch/uth-sol/conv-mach.h
src/arch/uth-sun/conv-mach.h
src/conv-core/converse.h
src/conv-core/memory.c
src/conv-core/threads.c

index 0d3c70bc929ca637bcf027c31351debcc23558d3..ce11431f11c8403a3c6c9bdba27e79b70f7fb7fa 100644 (file)
@@ -8,7 +8,12 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 2.29  1997-03-19 04:57:53  jyelon
+ * Revision 2.30  1997-03-25 23:09:03  milind
+ * Got threads to work on 64-bit irix. Had to add JB_TWEAKING_ORIGIN flag to
+ * all the conv-mach.h files. Also, _PAGESZ was undefined on irix. Added
+ * code to memory.c to make it a static variable.
+ *
+ * Revision 2.29  1997/03/19 04:57:53  jyelon
  * Removed the CMK_DEFAULT_MAIN_USES_SIMULATOR_CODE flag.
  *
  * Revision 2.28  1997/02/13 09:31:40  jyelon
 #define CMK_THREADS_USE_ALLOCA                             1
 #define CMK_THREADS_USE_JB_TWEAKING                        0
 #define CMK_THREADS_USE_JB_TWEAKING_EXEMPLAR               0
+#define CMK_THREADS_USE_JB_TWEAKING_ORIGIN                 0
 
 
 #define CMK_TIMER_USE_GETRUSAGE                            0
index d89ccc421d88ccf24095db2d243aa81e49582fc2..92b5a835955b5304479de53510d33a8ffe207f10 100644 (file)
@@ -8,7 +8,12 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 2.28  1997-03-19 04:57:59  jyelon
+ * Revision 2.29  1997-03-25 23:09:04  milind
+ * Got threads to work on 64-bit irix. Had to add JB_TWEAKING_ORIGIN flag to
+ * all the conv-mach.h files. Also, _PAGESZ was undefined on irix. Added
+ * code to memory.c to make it a static variable.
+ *
+ * Revision 2.28  1997/03/19 04:57:59  jyelon
  * Removed the CMK_DEFAULT_MAIN_USES_SIMULATOR_CODE flag.
  *
  * Revision 2.27  1997/02/13 09:31:41  jyelon
 #define CMK_THREADS_USE_ALLOCA                             0
 #define CMK_THREADS_USE_JB_TWEAKING                        0
 #define CMK_THREADS_USE_JB_TWEAKING_EXEMPLAR               1
+#define CMK_THREADS_USE_JB_TWEAKING_ORIGIN                 0
 
 #define CMK_TIMER_USE_GETRUSAGE                            0
 #define CMK_TIMER_USE_SPECIAL                              0
index 53624b5f0d696372f890a47a6446c6ee9a617170..51a1a90f970b83c32350d18024b9182f64a38de2 100644 (file)
@@ -8,7 +8,12 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 2.28  1997-03-19 04:58:00  jyelon
+ * Revision 2.29  1997-03-25 23:09:05  milind
+ * Got threads to work on 64-bit irix. Had to add JB_TWEAKING_ORIGIN flag to
+ * all the conv-mach.h files. Also, _PAGESZ was undefined on irix. Added
+ * code to memory.c to make it a static variable.
+ *
+ * Revision 2.28  1997/03/19 04:58:00  jyelon
  * Removed the CMK_DEFAULT_MAIN_USES_SIMULATOR_CODE flag.
  *
  * Revision 2.27  1997/02/13 09:31:42  jyelon
 #define CMK_THREADS_USE_ALLOCA                             1
 #define CMK_THREADS_USE_JB_TWEAKING                        0
 #define CMK_THREADS_USE_JB_TWEAKING_EXEMPLAR               0
+#define CMK_THREADS_USE_JB_TWEAKING_ORIGIN                 0
 
 #define CMK_TIMER_USE_GETRUSAGE                            0
 #define CMK_TIMER_USE_SPECIAL                              1
index 18ad79f50bac15fc26b36e374d74fe45eea1ca7b..7398c344e71f177b9a7763fb0b79eeb62ead3882 100644 (file)
@@ -8,7 +8,12 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.29  1997-03-19 04:58:04  jyelon
+ * Revision 1.30  1997-03-25 23:09:09  milind
+ * Got threads to work on 64-bit irix. Had to add JB_TWEAKING_ORIGIN flag to
+ * all the conv-mach.h files. Also, _PAGESZ was undefined on irix. Added
+ * code to memory.c to make it a static variable.
+ *
+ * Revision 1.29  1997/03/19 04:58:04  jyelon
  * Removed the CMK_DEFAULT_MAIN_USES_SIMULATOR_CODE flag.
  *
  * Revision 1.28  1997/02/13 09:31:45  jyelon
 #define CMK_THREADS_USE_ALLOCA                             1
 #define CMK_THREADS_USE_JB_TWEAKING                        0
 #define CMK_THREADS_USE_JB_TWEAKING_EXEMPLAR               0
+#define CMK_THREADS_USE_JB_TWEAKING_ORIGIN                 0
 
 #define CMK_TIMER_USE_GETRUSAGE                            0
 #define CMK_TIMER_USE_SPECIAL                              0
index 1ab90626902346282086d15b395df0bd285d7384..9f8ed449042b474ad507f9906ce88e4a1a10fcba 100644 (file)
@@ -8,7 +8,12 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.18  1997-03-19 04:58:02  jyelon
+ * Revision 1.19  1997-03-25 23:09:07  milind
+ * Got threads to work on 64-bit irix. Had to add JB_TWEAKING_ORIGIN flag to
+ * all the conv-mach.h files. Also, _PAGESZ was undefined on irix. Added
+ * code to memory.c to make it a static variable.
+ *
+ * Revision 1.18  1997/03/19 04:58:02  jyelon
  * Removed the CMK_DEFAULT_MAIN_USES_SIMULATOR_CODE flag.
  *
  * Revision 1.17  1997/02/13 17:32:42  milind
 #define CMK_THREADS_USE_ALLOCA                             0
 #define CMK_THREADS_USE_JB_TWEAKING                        1
 #define CMK_THREADS_USE_JB_TWEAKING_EXEMPLAR               0
+#define CMK_THREADS_USE_JB_TWEAKING_ORIGIN                 0
 
 #define CMK_TIMER_USE_GETRUSAGE                            0
 #define CMK_TIMER_USE_SPECIAL                              0
index 7b742e1e0d8c9af66515398f171271bce7d1dc40..d645bf8a3f5384ead7dd7641abbde09223a829c3 100644 (file)
@@ -8,7 +8,12 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 2.33  1997-03-19 04:58:01  jyelon
+ * Revision 2.34  1997-03-25 23:09:06  milind
+ * Got threads to work on 64-bit irix. Had to add JB_TWEAKING_ORIGIN flag to
+ * all the conv-mach.h files. Also, _PAGESZ was undefined on irix. Added
+ * code to memory.c to make it a static variable.
+ *
+ * Revision 2.33  1997/03/19 04:58:01  jyelon
  * Removed the CMK_DEFAULT_MAIN_USES_SIMULATOR_CODE flag.
  *
  * Revision 2.32  1997/02/13 09:31:43  jyelon
 #define CMK_THREADS_USE_ALLOCA                             1
 #define CMK_THREADS_USE_JB_TWEAKING                        0
 #define CMK_THREADS_USE_JB_TWEAKING_EXEMPLAR               0
+#define CMK_THREADS_USE_JB_TWEAKING_ORIGIN                 0
 
 #define CMK_TIMER_USE_GETRUSAGE                            0
 #define CMK_TIMER_USE_SPECIAL                              0
index 480ec5b646b1cebca32afba78723088b726ce973..9e8f77b71210e57c865066b1bf65360ae447a767 100644 (file)
@@ -8,7 +8,12 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.1  1997-03-19 21:45:27  milind
+ * Revision 1.2  1997-03-25 23:09:09  milind
+ * Got threads to work on 64-bit irix. Had to add JB_TWEAKING_ORIGIN flag to
+ * all the conv-mach.h files. Also, _PAGESZ was undefined on irix. Added
+ * code to memory.c to make it a static variable.
+ *
+ * Revision 1.1  1997/03/19 21:45:27  milind
  * net-irix-64 bit bersion. Not tested yet.
  *
  * Revision 1.3  1997/02/13 09:31:45  jyelon
 #define CMK_THREADS_REQUIRE_PRAGMA_ALLOCA                  0
 #define CMK_THREADS_REQUIRE_NO_CPV                         0
 
-#define CMK_THREADS_UNAVAILABLE                            1
+#define CMK_THREADS_UNAVAILABLE                            0
 #define CMK_THREADS_USE_ALLOCA                             0
 #define CMK_THREADS_USE_JB_TWEAKING                        0
 #define CMK_THREADS_USE_JB_TWEAKING_EXEMPLAR               0
+#define CMK_THREADS_USE_JB_TWEAKING_ORIGIN                 1
 
 #define CMK_TIMER_USE_GETRUSAGE                            0
 #define CMK_TIMER_USE_SPECIAL                              0
index 931b9bd6934a60e77a5099968a16cccb99101d62..c582dc68c4e4fa3eea2eb553d184ce5692493789 100644 (file)
@@ -8,7 +8,12 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.8  1997-03-25 15:04:58  milind
+ * Revision 1.9  1997-03-25 23:09:08  milind
+ * Got threads to work on 64-bit irix. Had to add JB_TWEAKING_ORIGIN flag to
+ * all the conv-mach.h files. Also, _PAGESZ was undefined on irix. Added
+ * code to memory.c to make it a static variable.
+ *
+ * Revision 1.8  1997/03/25 15:04:58  milind
  * Made changes suggested by Ed Kornkven to fix bugs in Dagger.
  *
  * Revision 1.7  1997/03/21 19:23:58  milind
 #define CMK_THREADS_USE_ALLOCA                             1
 #define CMK_THREADS_USE_JB_TWEAKING                        0
 #define CMK_THREADS_USE_JB_TWEAKING_EXEMPLAR               0
+#define CMK_THREADS_USE_JB_TWEAKING_ORIGIN                 0
 
 #define CMK_TIMER_USE_GETRUSAGE                            0
 #define CMK_TIMER_USE_SPECIAL                              0
index 3df0f50944d0de0b088602f2b61cfd63d8774c4f..158a7d0920bbed99f94809cf924e4be338449f8f 100644 (file)
@@ -8,7 +8,12 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.9  1997-03-19 04:58:07  jyelon
+ * Revision 1.10  1997-03-25 23:09:11  milind
+ * Got threads to work on 64-bit irix. Had to add JB_TWEAKING_ORIGIN flag to
+ * all the conv-mach.h files. Also, _PAGESZ was undefined on irix. Added
+ * code to memory.c to make it a static variable.
+ *
+ * Revision 1.9  1997/03/19 04:58:07  jyelon
  * Removed the CMK_DEFAULT_MAIN_USES_SIMULATOR_CODE flag.
  *
  * Revision 1.8  1997/02/13 09:31:47  jyelon
 #define CMK_THREADS_USE_ALLOCA                             1
 #define CMK_THREADS_USE_JB_TWEAKING                        0
 #define CMK_THREADS_USE_JB_TWEAKING_EXEMPLAR               0
+#define CMK_THREADS_USE_JB_TWEAKING_ORIGIN                 0
 
 #define CMK_TIMER_USE_GETRUSAGE                            0
 #define CMK_TIMER_USE_SPECIAL                              0
index 7609a2097cb762937c6208c96c8e1c4a95f898b0..5c521bf94e75616b84a1ef9ac1bd1a0a08558859 100644 (file)
@@ -8,7 +8,12 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.5  1997-03-19 04:58:08  jyelon
+ * Revision 1.6  1997-03-25 23:09:12  milind
+ * Got threads to work on 64-bit irix. Had to add JB_TWEAKING_ORIGIN flag to
+ * all the conv-mach.h files. Also, _PAGESZ was undefined on irix. Added
+ * code to memory.c to make it a static variable.
+ *
+ * Revision 1.5  1997/03/19 04:58:08  jyelon
  * Removed the CMK_DEFAULT_MAIN_USES_SIMULATOR_CODE flag.
  *
  * Revision 1.4  1997/02/13 09:31:48  jyelon
 #define CMK_THREADS_USE_ALLOCA                             1
 #define CMK_THREADS_USE_JB_TWEAKING                        0
 #define CMK_THREADS_USE_JB_TWEAKING_EXEMPLAR               0
+#define CMK_THREADS_USE_JB_TWEAKING_ORIGIN                 0
 
 #define CMK_TIMER_USE_GETRUSAGE                            0
 #define CMK_TIMER_USE_SPECIAL                              0
index c55c74ac55a2913f3b02733942ef97a4306595e0..14037922c078db4e9d18c6cce7cb2f3203a714c0 100644 (file)
@@ -8,7 +8,12 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 2.33  1997-03-19 04:58:06  jyelon
+ * Revision 2.34  1997-03-25 23:09:10  milind
+ * Got threads to work on 64-bit irix. Had to add JB_TWEAKING_ORIGIN flag to
+ * all the conv-mach.h files. Also, _PAGESZ was undefined on irix. Added
+ * code to memory.c to make it a static variable.
+ *
+ * Revision 2.33  1997/03/19 04:58:06  jyelon
  * Removed the CMK_DEFAULT_MAIN_USES_SIMULATOR_CODE flag.
  *
  * Revision 2.32  1997/02/13 09:31:46  jyelon
 #define CMK_THREADS_USE_ALLOCA                             1
 #define CMK_THREADS_USE_JB_TWEAKING                        0
 #define CMK_THREADS_USE_JB_TWEAKING_EXEMPLAR               0
+#define CMK_THREADS_USE_JB_TWEAKING_ORIGIN                 0
 
 #define CMK_TIMER_USE_GETRUSAGE                            0
 #define CMK_TIMER_USE_SPECIAL                              0
index 2945f086dddd6887164c14c42b03b44097e58877..2439bcda9c5ba98b64a54b18b693d30988360901 100644 (file)
@@ -8,7 +8,12 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 2.32  1997-03-19 04:58:09  jyelon
+ * Revision 2.33  1997-03-25 23:09:13  milind
+ * Got threads to work on 64-bit irix. Had to add JB_TWEAKING_ORIGIN flag to
+ * all the conv-mach.h files. Also, _PAGESZ was undefined on irix. Added
+ * code to memory.c to make it a static variable.
+ *
+ * Revision 2.32  1997/03/19 04:58:09  jyelon
  * Removed the CMK_DEFAULT_MAIN_USES_SIMULATOR_CODE flag.
  *
  * Revision 2.31  1997/02/13 09:31:48  jyelon
 #define CMK_THREADS_USE_ALLOCA                             1
 #define CMK_THREADS_USE_JB_TWEAKING                        0
 #define CMK_THREADS_USE_JB_TWEAKING_EXEMPLAR               0
+#define CMK_THREADS_USE_JB_TWEAKING_ORIGIN                 0
 
 #define CMK_TIMER_USE_GETRUSAGE                            1
 #define CMK_TIMER_USE_SPECIAL                              0
index 873182a3e65a8d52643dd44ed9fa112709f46bf6..3bf0142094eb1fd1501c4ce16dcd3f77a0ce6a29 100644 (file)
@@ -8,7 +8,12 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.15  1997-03-19 04:58:10  jyelon
+ * Revision 1.16  1997-03-25 23:09:14  milind
+ * Got threads to work on 64-bit irix. Had to add JB_TWEAKING_ORIGIN flag to
+ * all the conv-mach.h files. Also, _PAGESZ was undefined on irix. Added
+ * code to memory.c to make it a static variable.
+ *
+ * Revision 1.15  1997/03/19 04:58:10  jyelon
  * Removed the CMK_DEFAULT_MAIN_USES_SIMULATOR_CODE flag.
  *
  * Revision 1.14  1997/02/13 09:31:49  jyelon
 #define CMK_THREADS_USE_ALLOCA                             1
 #define CMK_THREADS_USE_JB_TWEAKING                        0
 #define CMK_THREADS_USE_JB_TWEAKING_EXEMPLAR               0
+#define CMK_THREADS_USE_JB_TWEAKING_ORIGIN                 0
 
 #define CMK_TIMER_USE_GETRUSAGE                            0
 #define CMK_TIMER_USE_SPECIAL                              1
index ad358b6b42feffc9991ca14772bc953e04b4a704..de025b83e247fdb84f9a140bb32377f17ba8b9b1 100644 (file)
@@ -8,7 +8,12 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.15  1997-03-19 04:58:11  jyelon
+ * Revision 1.16  1997-03-25 23:09:15  milind
+ * Got threads to work on 64-bit irix. Had to add JB_TWEAKING_ORIGIN flag to
+ * all the conv-mach.h files. Also, _PAGESZ was undefined on irix. Added
+ * code to memory.c to make it a static variable.
+ *
+ * Revision 1.15  1997/03/19 04:58:11  jyelon
  * Removed the CMK_DEFAULT_MAIN_USES_SIMULATOR_CODE flag.
  *
  * Revision 1.14  1997/02/13 09:31:50  jyelon
 #define CMK_THREADS_USE_ALLOCA                             1
 #define CMK_THREADS_USE_JB_TWEAKING                        0
 #define CMK_THREADS_USE_JB_TWEAKING_EXEMPLAR               0
+#define CMK_THREADS_USE_JB_TWEAKING_ORIGIN                 0
 
 #define CMK_TIMER_USE_GETRUSAGE                            0
 #define CMK_TIMER_USE_SPECIAL                              1
index 0093dfdc1239cab4693869c4c7810aabd61c9b98..537d01edb536cb5b06e8105a39f15f1731a64bb5 100644 (file)
@@ -8,7 +8,12 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.20  1997-03-19 04:58:12  jyelon
+ * Revision 1.21  1997-03-25 23:09:16  milind
+ * Got threads to work on 64-bit irix. Had to add JB_TWEAKING_ORIGIN flag to
+ * all the conv-mach.h files. Also, _PAGESZ was undefined on irix. Added
+ * code to memory.c to make it a static variable.
+ *
+ * Revision 1.20  1997/03/19 04:58:12  jyelon
  * Removed the CMK_DEFAULT_MAIN_USES_SIMULATOR_CODE flag.
  *
  * Revision 1.19  1997/02/13 09:31:50  jyelon
 #define CMK_THREADS_USE_ALLOCA                             0
 #define CMK_THREADS_USE_JB_TWEAKING                        0
 #define CMK_THREADS_USE_JB_TWEAKING_EXEMPLAR               0
+#define CMK_THREADS_USE_JB_TWEAKING_ORIGIN                 0
 
 #define CMK_TIMER_USE_GETRUSAGE                            0
 #define CMK_TIMER_USE_SPECIAL                              0
index fcf46c7e36b2960cf7a7f01c5a50b6c62b26adb8..070be61bc72fc477a84df79d38e02090dd90a7c3 100644 (file)
@@ -8,7 +8,12 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.1  1997-03-24 23:14:06  milind
+ * Revision 1.2  1997-03-25 23:09:17  milind
+ * Got threads to work on 64-bit irix. Had to add JB_TWEAKING_ORIGIN flag to
+ * all the conv-mach.h files. Also, _PAGESZ was undefined on irix. Added
+ * code to memory.c to make it a static variable.
+ *
+ * Revision 1.1  1997/03/24 23:14:06  milind
  * Made Charm-runtime 64-bit safe by removing conversions of pointers to
  * integers. Also, removed charm runtime's dependence of unused argv[]
  * elements being 0. Also, added sim-irix-64 version. It works.
 #define CMK_THREADS_USE_ALLOCA                             0
 #define CMK_THREADS_USE_JB_TWEAKING                        0
 #define CMK_THREADS_USE_JB_TWEAKING_EXEMPLAR               0
+#define CMK_THREADS_USE_JB_TWEAKING_ORIGIN                 0
 
 #define CMK_TIMER_USE_GETRUSAGE                            0
 #define CMK_TIMER_USE_SPECIAL                              0
index b10acbdc0e4a5c4bdaaf6b124960763f319bb853..8cfb24adf021a9098d899b29f426fbfa4bd20f29 100644 (file)
@@ -8,7 +8,12 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.1  1997-03-24 16:20:38  milind
+ * Revision 1.2  1997-03-25 23:09:16  milind
+ * Got threads to work on 64-bit irix. Had to add JB_TWEAKING_ORIGIN flag to
+ * all the conv-mach.h files. Also, _PAGESZ was undefined on irix. Added
+ * code to memory.c to make it a static variable.
+ *
+ * Revision 1.1  1997/03/24 16:20:38  milind
  * Added sim-irix version.
  *
  * Revision 1.20  1997/03/19 04:58:12  jyelon
 #define CMK_THREADS_USE_ALLOCA                             0
 #define CMK_THREADS_USE_JB_TWEAKING                        0
 #define CMK_THREADS_USE_JB_TWEAKING_EXEMPLAR               0
+#define CMK_THREADS_USE_JB_TWEAKING_ORIGIN                 0
 
 #define CMK_TIMER_USE_GETRUSAGE                            0
 #define CMK_TIMER_USE_SPECIAL                              0
index 9bdecbf6f964801d34c5253f12c30bba8c81dc25..226f7428c22eb55f48e427d8c33f3f510ec6821e 100644 (file)
@@ -8,7 +8,12 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.19  1997-03-19 04:58:13  jyelon
+ * Revision 1.20  1997-03-25 23:09:18  milind
+ * Got threads to work on 64-bit irix. Had to add JB_TWEAKING_ORIGIN flag to
+ * all the conv-mach.h files. Also, _PAGESZ was undefined on irix. Added
+ * code to memory.c to make it a static variable.
+ *
+ * Revision 1.19  1997/03/19 04:58:13  jyelon
  * Removed the CMK_DEFAULT_MAIN_USES_SIMULATOR_CODE flag.
  *
  * Revision 1.18  1997/02/13 09:31:51  jyelon
 #define CMK_THREADS_USE_ALLOCA                             1
 #define CMK_THREADS_USE_JB_TWEAKING                        0
 #define CMK_THREADS_USE_JB_TWEAKING_EXEMPLAR               0
+#define CMK_THREADS_USE_JB_TWEAKING_ORIGIN                 0
 
 #define CMK_TIMER_USE_GETRUSAGE                            0
 #define CMK_TIMER_USE_SPECIAL                              0
index a1d747a98449ec8fa09518fc97d6d17ac29270d7..ead69421ca5a561a43490b90591f16e03355805a 100644 (file)
@@ -8,7 +8,12 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.19  1997-03-19 04:58:15  jyelon
+ * Revision 1.20  1997-03-25 23:09:19  milind
+ * Got threads to work on 64-bit irix. Had to add JB_TWEAKING_ORIGIN flag to
+ * all the conv-mach.h files. Also, _PAGESZ was undefined on irix. Added
+ * code to memory.c to make it a static variable.
+ *
+ * Revision 1.19  1997/03/19 04:58:15  jyelon
  * Removed the CMK_DEFAULT_MAIN_USES_SIMULATOR_CODE flag.
  *
  * Revision 1.18  1997/03/19 04:31:49  jyelon
 #define CMK_THREADS_USE_ALLOCA                             1
 #define CMK_THREADS_USE_JB_TWEAKING                        0
 #define CMK_THREADS_USE_JB_TWEAKING_EXEMPLAR               0
+#define CMK_THREADS_USE_JB_TWEAKING_ORIGIN                 0
 
 #define CMK_TIMER_USE_GETRUSAGE                            0
 #define CMK_TIMER_USE_SPECIAL                              0
index 8f161775aa93a47d325b506af91e2bdc9819fff3..44f4d26d1e69af4f1e092e8b598768047a91a61e 100644 (file)
@@ -8,7 +8,12 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.18  1997-03-19 04:58:16  jyelon
+ * Revision 1.19  1997-03-25 23:09:21  milind
+ * Got threads to work on 64-bit irix. Had to add JB_TWEAKING_ORIGIN flag to
+ * all the conv-mach.h files. Also, _PAGESZ was undefined on irix. Added
+ * code to memory.c to make it a static variable.
+ *
+ * Revision 1.18  1997/03/19 04:58:16  jyelon
  * Removed the CMK_DEFAULT_MAIN_USES_SIMULATOR_CODE flag.
  *
  * Revision 1.17  1997/02/13 09:31:54  jyelon
 #define CMK_THREADS_USE_ALLOCA                             1
 #define CMK_THREADS_USE_JB_TWEAKING                        0
 #define CMK_THREADS_USE_JB_TWEAKING_EXEMPLAR               0
+#define CMK_THREADS_USE_JB_TWEAKING_ORIGIN                 0
 
 #define CMK_TIMER_USE_GETRUSAGE                            0
 #define CMK_TIMER_USE_SPECIAL                              0
index efe9b60d84ca7bd543e767ab6ddac29977e2d943..4a86bd9a4f3a49dbc680200602ab9f572cd0ef9a 100644 (file)
@@ -8,7 +8,12 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 2.27  1997-03-19 04:58:17  jyelon
+ * Revision 2.28  1997-03-25 23:09:23  milind
+ * Got threads to work on 64-bit irix. Had to add JB_TWEAKING_ORIGIN flag to
+ * all the conv-mach.h files. Also, _PAGESZ was undefined on irix. Added
+ * code to memory.c to make it a static variable.
+ *
+ * Revision 2.27  1997/03/19 04:58:17  jyelon
  * Removed the CMK_DEFAULT_MAIN_USES_SIMULATOR_CODE flag.
  *
  * Revision 2.26  1997/02/13 09:31:55  jyelon
 #define CMK_THREADS_USE_ALLOCA                             1
 #define CMK_THREADS_USE_JB_TWEAKING                        0
 #define CMK_THREADS_USE_JB_TWEAKING_EXEMPLAR               0
+#define CMK_THREADS_USE_JB_TWEAKING_ORIGIN                 0
 
 #define CMK_TIMER_USE_GETRUSAGE                            0
 #define CMK_TIMER_USE_SPECIAL                              1
index 2011fa33b62727aba62ed39266e85083ac4818fe..afdd051fad714190720de280591d0642a1688e53 100644 (file)
@@ -8,7 +8,12 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.16  1997-03-19 04:58:18  jyelon
+ * Revision 1.17  1997-03-25 23:09:24  milind
+ * Got threads to work on 64-bit irix. Had to add JB_TWEAKING_ORIGIN flag to
+ * all the conv-mach.h files. Also, _PAGESZ was undefined on irix. Added
+ * code to memory.c to make it a static variable.
+ *
+ * Revision 1.16  1997/03/19 04:58:18  jyelon
  * Removed the CMK_DEFAULT_MAIN_USES_SIMULATOR_CODE flag.
  *
  * Revision 1.15  1997/02/13 09:31:56  jyelon
 #define CMK_THREADS_USE_ALLOCA                             0
 #define CMK_THREADS_USE_JB_TWEAKING                        1
 #define CMK_THREADS_USE_JB_TWEAKING_EXEMPLAR               0
+#define CMK_THREADS_USE_JB_TWEAKING_ORIGIN                 0
 
 #define CMK_TIMER_USE_GETRUSAGE                            0
 #define CMK_TIMER_USE_SPECIAL                              1
index 930a07dd47aea7adf0b661b6f1011d1d56939c9b..a4edf15d9ae58ea242438be9d0db1a53e752c965 100644 (file)
@@ -8,7 +8,12 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 2.34  1997-03-19 04:58:19  jyelon
+ * Revision 2.35  1997-03-25 23:09:24  milind
+ * Got threads to work on 64-bit irix. Had to add JB_TWEAKING_ORIGIN flag to
+ * all the conv-mach.h files. Also, _PAGESZ was undefined on irix. Added
+ * code to memory.c to make it a static variable.
+ *
+ * Revision 2.34  1997/03/19 04:58:19  jyelon
  * Removed the CMK_DEFAULT_MAIN_USES_SIMULATOR_CODE flag.
  *
  * Revision 2.33  1997/02/13 09:31:58  jyelon
 #define CMK_THREADS_USE_ALLOCA                             1
 #define CMK_THREADS_USE_JB_TWEAKING                        0
 #define CMK_THREADS_USE_JB_TWEAKING_EXEMPLAR               0
+#define CMK_THREADS_USE_JB_TWEAKING_ORIGIN                 0
 
 #define CMK_TIMER_USE_GETRUSAGE                            0
 #define CMK_TIMER_USE_SPECIAL                              0
index 84c8e6c8535fa6d8364adebfdf9d27d88dcc9e44..3f3dcf49ecf7a0025eb1fa44211eed154f9b1ea8 100644 (file)
@@ -8,7 +8,12 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 2.33  1997-03-19 04:58:20  jyelon
+ * Revision 2.34  1997-03-25 23:09:25  milind
+ * Got threads to work on 64-bit irix. Had to add JB_TWEAKING_ORIGIN flag to
+ * all the conv-mach.h files. Also, _PAGESZ was undefined on irix. Added
+ * code to memory.c to make it a static variable.
+ *
+ * Revision 2.33  1997/03/19 04:58:20  jyelon
  * Removed the CMK_DEFAULT_MAIN_USES_SIMULATOR_CODE flag.
  *
  * Revision 2.32  1997/02/13 09:31:59  jyelon
 #define CMK_THREADS_USE_ALLOCA                             1
 #define CMK_THREADS_USE_JB_TWEAKING                        0
 #define CMK_THREADS_USE_JB_TWEAKING_EXEMPLAR               0
+#define CMK_THREADS_USE_JB_TWEAKING_ORIGIN                 0
 
 #define CMK_TIMER_USE_GETRUSAGE                            0
 #define CMK_TIMER_USE_SPECIAL                              0
index a399c002da590812dd463f3a3bd28c9c0585c094..988d70b853dc9d6c6d7fa662a28b71d09d492702 100644 (file)
@@ -8,7 +8,12 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.9  1997-03-21 19:23:59  milind
+ * Revision 1.10  1997-03-25 23:09:27  milind
+ * Got threads to work on 64-bit irix. Had to add JB_TWEAKING_ORIGIN flag to
+ * all the conv-mach.h files. Also, _PAGESZ was undefined on irix. Added
+ * code to memory.c to make it a static variable.
+ *
+ * Revision 1.9  1997/03/21 19:23:59  milind
  * removed the alignment bug in Common.uth/machine.c
  *
  * Revision 1.8  1997/03/19 04:58:23  jyelon
 #define CMK_THREADS_USE_ALLOCA                             0
 #define CMK_THREADS_USE_JB_TWEAKING                        1
 #define CMK_THREADS_USE_JB_TWEAKING_EXEMPLAR               0
+#define CMK_THREADS_USE_JB_TWEAKING_ORIGIN                 0
 
 #define CMK_TIMER_USE_GETRUSAGE                            0
 #define CMK_TIMER_USE_SPECIAL                              0
index cb6f247964265a3043e7b8ff95240e602c011e67..3edacfc9d76d2d89d1e3f66d0116d3bf2dcfb17d 100644 (file)
@@ -8,7 +8,12 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.22  1997-03-19 04:58:22  jyelon
+ * Revision 1.23  1997-03-25 23:09:26  milind
+ * Got threads to work on 64-bit irix. Had to add JB_TWEAKING_ORIGIN flag to
+ * all the conv-mach.h files. Also, _PAGESZ was undefined on irix. Added
+ * code to memory.c to make it a static variable.
+ *
+ * Revision 1.22  1997/03/19 04:58:22  jyelon
  * Removed the CMK_DEFAULT_MAIN_USES_SIMULATOR_CODE flag.
  *
  * Revision 1.21  1997/02/13 09:32:00  jyelon
 #define CMK_THREADS_USE_ALLOCA                             0
 #define CMK_THREADS_USE_JB_TWEAKING                        1
 #define CMK_THREADS_USE_JB_TWEAKING_EXEMPLAR               0
+#define CMK_THREADS_USE_JB_TWEAKING_ORIGIN                 0
 
 #define CMK_TIMER_USE_GETRUSAGE                            0
 #define CMK_TIMER_USE_SPECIAL                              0
diff --git a/src/arch/uth-irix-64/conv-mach.csh b/src/arch/uth-irix-64/conv-mach.csh
new file mode 100755 (executable)
index 0000000..7855128
--- /dev/null
@@ -0,0 +1,47 @@
+############################################################################
+# RCS INFORMATION:
+#
+#      $RCSfile$
+#      $Author$        $Locker$                $State$
+#      $Revision$      $Date$
+#
+############################################################################
+# DESCRIPTION:
+#
+############################################################################
+# REVISION HISTORY:
+#
+#
+############################################################################
+
+set CMK_CPP_CHARM='/usr/lib/cpp '
+set CMK_CPP_C='cc -E -64 '
+set CMK_LDRO='ld -r -o'
+set CMK_LDRO_WORKS=0
+set CMK_CC='cc  -w -64 '
+set CMK_CC_RELIABLE='cc  -w -64 '
+set CMK_CC_FASTEST='cc  -w -64 '
+set CMK_CXX='CC -w -64 '
+set CMK_CXXPP='CC -E -w -64 '
+set CMK_CF77=''
+set CMK_C_DEBUG='-g'
+set CMK_C_OPTIMIZE='-O'
+set CMK_CXX_DEBUG='-g'
+set CMK_CXX_OPTIMIZE='-O'
+set CMK_LD='cc -w -64 '
+set CMK_LDXX='CC -w -64 '
+set CMK_LD77=''
+set CMK_M4='m4'
+set CMK_SUF='o'
+set CMK_AR='ar cq'
+set CMK_RANLIB='true'
+set CMK_LIBS=''
+set CMK_SEQ_LIBS=''
+set CMK_SEQ_CC='cc -w -64 '
+set CMK_SEQ_LD='cc -w -64 '
+set CMK_SEQ_CXX='CC -w -64 '
+set CMK_SEQ_LDXX='CC -w -64 '
+set CMK_NM='nm'
+set CMK_NM_FILTER="grep '|GLOB |' | sed -e 's/.*|//'"
+set CMK_CPP_SUFFIX="i"
+set CMK_XLATPP='charmxlat++ -w '
diff --git a/src/arch/uth-irix-64/conv-mach.h b/src/arch/uth-irix-64/conv-mach.h
new file mode 100644 (file)
index 0000000..950af42
--- /dev/null
@@ -0,0 +1,167 @@
+/***************************************************************************
+ * RCS INFORMATION:
+ *
+ *   $RCSfile$
+ *   $Author$       $Locker$        $State$
+ *   $Revision$     $Date$
+ *
+ ***************************************************************************
+ *
+ * $Log$
+ * Revision 1.1  1997-03-25 23:09:29  milind
+ * Got threads to work on 64-bit irix. Had to add JB_TWEAKING_ORIGIN flag to
+ * all the conv-mach.h files. Also, _PAGESZ was undefined on irix. Added
+ * code to memory.c to make it a static variable.
+ *
+ * Revision 1.3  1997/03/25 15:04:59  milind
+ * Made changes suggested by Ed Kornkven to fix bugs in Dagger.
+ *
+ * Revision 1.2  1997/03/24 23:24:43  milind
+ * MAde uth-irix version to work by tweaking conv-mach.h flags and also
+ * modified uth-irix/conv-mach.csh to make megatest and megatest++
+ * correctly by removing the nm bugs.
+ *
+ * Revision 1.1  1997/03/21 23:22:55  jyelon
+ * Blabla
+ *
+ * Revision 1.3  1997/02/13 09:31:45  jyelon
+ * Updated for new main/ConverseInit structure.
+ *
+ * Revision 1.2  1997/02/08 14:10:19  jyelon
+ * Correcting bugs in network version.
+ *
+ * Revision 1.1  1997/01/28 16:26:42  milind
+ * Added net-irix version. Had to fix the charm++ translator for that.
+ * Also, threads are currently not supported on net-irix.
+ * Added a test program to measure scheduling overhead for both
+ * normal as well as threaded entry methods.
+ *
+ * Revision 2.28  1997/01/17 15:50:26  jyelon
+ * Minor adjustments to deal with recent changes to Common code.
+ *
+ * Revision 2.27  1996/11/23 02:25:39  milind
+ * Fixed several subtle bugs in the converse runtime for convex
+ * exemplar.
+ *
+ * Revision 2.26  1996/11/08 22:22:59  brunner
+ * Put _main in for HP-UX CC compilation.  It is ignored according to the
+ * CMK_USE_HP_MAIN_FIX flag.
+ *
+ * Revision 2.25  1996/10/24 19:40:26  milind
+ * Added CMK_IS_HETERO to all the net-all versions.
+ *
+ * Revision 2.24  1996/08/08 20:16:53  jyelon
+ * *** empty log message ***
+ *
+ * Revision 2.23  1996/07/16 17:23:37  jyelon
+ * Renamed a flag.
+ *
+ * Revision 2.22  1996/07/16 05:20:41  milind
+ * Added CMK_VECTOR_SEND
+ *
+ * Revision 2.21  1996/07/15  20:58:27  jyelon
+ * Flags now use #if, not #ifdef.  Also cleaned up a lot.
+ *
+ *
+ **************************************************************************/
+
+#ifndef _CONV_MACH_H
+#define _CONV_MACH_H
+
+#define CMK_ASYNC_NOT_NEEDED                               1
+#define CMK_ASYNC_USE_FIOASYNC_AND_FIOSETOWN               0
+#define CMK_ASYNC_USE_FIOASYNC_AND_SIOCSPGRP               0
+#define CMK_ASYNC_USE_FIOSSAIOSTAT_AND_FIOSSAIOOWN         0
+#define CMK_ASYNC_USE_F_SETFL_AND_F_SETOWN                 0
+
+#define CMK_CMIDELIVERS_USE_COMMON_CODE                    0
+#define CMK_CMIDELIVERS_USE_SPECIAL_CODE                   1
+
+#define CMK_CMIPRINTF_IS_A_BUILTIN                         0
+#define CMK_CMIPRINTF_IS_JUST_PRINTF                       1
+
+#define CMK_COMMHANDLE_IS_AN_INTEGER                       0
+#define CMK_COMMHANDLE_IS_A_POINTER                        1
+
+#define CMK_CSDEXITSCHEDULER_IS_A_FUNCTION                 0
+#define CMK_CSDEXITSCHEDULER_SET_CSDSTOPFLAG               1
+
+#define CMK_DEFAULT_MAIN_USES_COMMON_CODE                  1
+#define CMK_DEFAULT_MAIN_USES_SIMULATOR_CODE               0
+
+#define CMK_FIX_HP_CONNECT_BUG                             0
+
+#define CMK_IS_HETERO                                      1
+
+#define CMK_MACHINE_NAME                                   "uth-irix-64"
+
+#define CMK_MALLOC_USE_GNU_MALLOC                          0
+#define CMK_MALLOC_USE_OS_BUILTIN                          1
+
+#define CMK_MSG_HEADER_SIZE_BYTES                          4
+#define CMK_MSG_HEADER_BLANK_SPACE                         0
+
+#define CMK_PREPROCESSOR_CANNOT_DO_CONCATENATION           0
+#define CMK_PREPROCESSOR_USES_ANSI_STANDARD_CONCATENATION  1
+
+#define CMK_PROTOTYPES_FAIL                                0
+#define CMK_PROTOTYPES_WORK                                1
+
+#define CMK_RSH_IS_A_COMMAND                               1
+#define CMK_RSH_NOT_NEEDED                                 0
+#define CMK_RSH_USE_REMSH                                  0
+
+#define CMK_SHARED_VARS_EXEMPLAR                           0
+#define CMK_SHARED_VARS_UNAVAILABLE                        0
+#define CMK_SHARED_VARS_UNIPROCESSOR                       1
+#define CMK_SHARED_VARS_SUN_THREADS                        0
+
+#define CMK_SIGHOLD_IS_A_BUILTIN                           1
+#define CMK_SIGHOLD_NOT_NEEDED                             0
+#define CMK_SIGHOLD_USE_SIGMASK                            0
+
+#define CMK_SIGNAL_NOT_NEEDED                              1
+#define CMK_SIGNAL_USE_SIGACTION                           0
+#define CMK_SIGNAL_USE_SIGACTION_WITH_RESTART              0
+
+#define CMK_SIZE_T                                         unsigned long
+
+#define CMK_STATIC_PROTO_FAILS                             0
+#define CMK_STATIC_PROTO_WORKS                             1
+
+#define CMK_STRERROR_IS_A_BUILTIN                          0
+#define CMK_STRERROR_USE_SYS_ERRLIST                       1
+
+#define CMK_STRINGS_USE_OWN_DECLARATIONS                   0
+#define CMK_STRINGS_USE_STRINGS_H                          0
+#define CMK_STRINGS_USE_STRING_H                           1
+
+#define CMK_THREADS_REQUIRE_ALLOCA_H                       1
+#define CMK_THREADS_REQUIRE_PRAGMA_ALLOCA                  0
+#define CMK_THREADS_REQUIRE_NO_CPV                         1
+
+#define CMK_THREADS_UNAVAILABLE                            0
+#define CMK_THREADS_USE_ALLOCA                             0
+#define CMK_THREADS_USE_JB_TWEAKING                        0
+#define CMK_THREADS_USE_JB_TWEAKING_EXEMPLAR               0
+#define CMK_THREADS_USE_JB_TWEAKING_ORIGIN                 1
+
+#define CMK_TIMER_USE_GETRUSAGE                            0
+#define CMK_TIMER_USE_SPECIAL                              0
+#define CMK_TIMER_USE_TIMES                                1
+
+#define CMK_VECTOR_SEND_USES_COMMON_CODE                   1
+#define CMK_VECTOR_SEND_USES_SPECIAL_CODE                  0
+
+#define CMK_WAIT_NOT_NEEDED                                1
+#define CMK_WAIT_USES_SYS_WAIT_H                           0
+#define CMK_WAIT_USES_WAITFLAGS_H                          0
+
+#define CMK_WHEN_PROCESSOR_IDLE_BUSYWAIT                   1
+#define CMK_WHEN_PROCESSOR_IDLE_USLEEP                     0
+
+#define CMK_USE_HP_MAIN_FIX                                0
+#define CMK_DONT_USE_HP_MAIN_FIX                           1
+
+#endif
+
index 9ee33f1ad53711e16a958cd46945b4fded6fe0d0..6ea4e3fbc3ca4be551ae2f632ae5375fdfe064b2 100644 (file)
@@ -8,7 +8,12 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.3  1997-03-25 15:04:59  milind
+ * Revision 1.4  1997-03-25 23:09:28  milind
+ * Got threads to work on 64-bit irix. Had to add JB_TWEAKING_ORIGIN flag to
+ * all the conv-mach.h files. Also, _PAGESZ was undefined on irix. Added
+ * code to memory.c to make it a static variable.
+ *
+ * Revision 1.3  1997/03/25 15:04:59  milind
  * Made changes suggested by Ed Kornkven to fix bugs in Dagger.
  *
  * Revision 1.2  1997/03/24 23:24:43  milind
 #define CMK_THREADS_USE_ALLOCA                             1
 #define CMK_THREADS_USE_JB_TWEAKING                        0
 #define CMK_THREADS_USE_JB_TWEAKING_EXEMPLAR               0
+#define CMK_THREADS_USE_JB_TWEAKING_ORIGIN                 0
 
 #define CMK_TIMER_USE_GETRUSAGE                            0
 #define CMK_TIMER_USE_SPECIAL                              0
index 9e3c1f2637ed8babd10d7b2f9d2fb5b183f49deb..14cd870c391845f1653bfd9b8efd43c2a2f6ae3a 100644 (file)
@@ -8,7 +8,12 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.24  1997-03-19 04:58:25  jyelon
+ * Revision 1.25  1997-03-25 23:09:30  milind
+ * Got threads to work on 64-bit irix. Had to add JB_TWEAKING_ORIGIN flag to
+ * all the conv-mach.h files. Also, _PAGESZ was undefined on irix. Added
+ * code to memory.c to make it a static variable.
+ *
+ * Revision 1.24  1997/03/19 04:58:25  jyelon
  * Removed the CMK_DEFAULT_MAIN_USES_SIMULATOR_CODE flag.
  *
  * Revision 1.23  1997/02/13 09:32:01  jyelon
 #define CMK_THREADS_USE_ALLOCA                             1
 #define CMK_THREADS_USE_JB_TWEAKING                        0
 #define CMK_THREADS_USE_JB_TWEAKING_EXEMPLAR               0
+#define CMK_THREADS_USE_JB_TWEAKING_ORIGIN                 0
 
 #define CMK_TIMER_USE_GETRUSAGE                            0
 #define CMK_TIMER_USE_SPECIAL                              0
index c465208b050a54527eb9b4b2acdaae2eaa1d14e9..f363bb37dff4f03b73c1faf7f6134e8db3cc0261 100644 (file)
@@ -8,7 +8,12 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.9  1997-03-19 04:58:28  jyelon
+ * Revision 1.10  1997-03-25 23:09:32  milind
+ * Got threads to work on 64-bit irix. Had to add JB_TWEAKING_ORIGIN flag to
+ * all the conv-mach.h files. Also, _PAGESZ was undefined on irix. Added
+ * code to memory.c to make it a static variable.
+ *
+ * Revision 1.9  1997/03/19 04:58:28  jyelon
  * Removed the CMK_DEFAULT_MAIN_USES_SIMULATOR_CODE flag.
  *
  * Revision 1.8  1997/02/13 09:32:03  jyelon
 #define CMK_THREADS_USE_ALLOCA                             0
 #define CMK_THREADS_USE_JB_TWEAKING                        1
 #define CMK_THREADS_USE_JB_TWEAKING_EXEMPLAR               0
+#define CMK_THREADS_USE_JB_TWEAKING_ORIGIN                 0
 
 #define CMK_TIMER_USE_GETRUSAGE                            0
 #define CMK_TIMER_USE_SPECIAL                              0
index a12735e69b89fc3c7510cf30bd47f474f721374b..b82ec6d706f192dff3adeb230e54c60adb52eca3 100644 (file)
@@ -8,7 +8,12 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.24  1997-03-19 04:58:26  jyelon
+ * Revision 1.25  1997-03-25 23:09:31  milind
+ * Got threads to work on 64-bit irix. Had to add JB_TWEAKING_ORIGIN flag to
+ * all the conv-mach.h files. Also, _PAGESZ was undefined on irix. Added
+ * code to memory.c to make it a static variable.
+ *
+ * Revision 1.24  1997/03/19 04:58:26  jyelon
  * Removed the CMK_DEFAULT_MAIN_USES_SIMULATOR_CODE flag.
  *
  * Revision 1.23  1997/02/13 09:32:02  jyelon
 #define CMK_THREADS_USE_ALLOCA                             1
 #define CMK_THREADS_USE_JB_TWEAKING                        0
 #define CMK_THREADS_USE_JB_TWEAKING_EXEMPLAR               0
+#define CMK_THREADS_USE_JB_TWEAKING_ORIGIN                 0
 
 #define CMK_TIMER_USE_GETRUSAGE                            0
 #define CMK_TIMER_USE_SPECIAL                              0
index c909004be115ced6d59655681b9c05eb08d4a725..5b0abd3fd6de6eb97855b22d5eb45c1f23426830 100644 (file)
@@ -8,7 +8,12 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.25  1997-03-19 04:58:29  jyelon
+ * Revision 1.26  1997-03-25 23:09:33  milind
+ * Got threads to work on 64-bit irix. Had to add JB_TWEAKING_ORIGIN flag to
+ * all the conv-mach.h files. Also, _PAGESZ was undefined on irix. Added
+ * code to memory.c to make it a static variable.
+ *
+ * Revision 1.25  1997/03/19 04:58:29  jyelon
  * Removed the CMK_DEFAULT_MAIN_USES_SIMULATOR_CODE flag.
  *
  * Revision 1.24  1997/02/13 09:32:03  jyelon
 #define CMK_THREADS_USE_ALLOCA                             1
 #define CMK_THREADS_USE_JB_TWEAKING                        0
 #define CMK_THREADS_USE_JB_TWEAKING_EXEMPLAR               0
+#define CMK_THREADS_USE_JB_TWEAKING_ORIGIN                 0
 
 #define CMK_TIMER_USE_GETRUSAGE                            0
 #define CMK_TIMER_USE_SPECIAL                              0
index 2636250fbd10a4b213f868ff647df1876a8cc52b..cf005218d363efd49c739de7f72d5f60b95dd4dd 100644 (file)
  * REVISION HISTORY:
  *
  * $Log$
- * Revision 2.57  1997-03-19 04:31:04  jyelon
+ * Revision 2.58  1997-03-25 23:09:00  milind
+ * Got threads to work on 64-bit irix. Had to add JB_TWEAKING_ORIGIN flag to
+ * all the conv-mach.h files. Also, _PAGESZ was undefined on irix. Added
+ * code to memory.c to make it a static variable.
+ *
+ * Revision 2.57  1997/03/19 04:31:04  jyelon
  * Redesigned ConverseInit
  *
  * Revision 2.56  1997/03/17 23:40:23  milind
@@ -651,6 +656,16 @@ extern int CthRegister CMK_PROTO((int));
 #define CtvInitialize(t,v)      if (CmiMyRank()==0) (CsvAccess(CtvOffs##v)=CthRegister(sizeof(CtvType##v)));
 #endif /* CMK_THREADS_USE_JB_TWEAKING */
 
+#if CMK_THREADS_USE_JB_TWEAKING_ORIGIN
+CthCpvExtern(char *,CthData);
+extern int CthRegister CMK_PROTO((int));
+#define CtvDeclare(t,v)         typedef t CtvType##v; CsvDeclare(int,CtvOffs##v);
+#define CtvStaticDeclare(t,v)   typedef t CtvType##v; CsvDeclare(int,CtvOffs##v);
+#define CtvExtern(t,v)          typedef t CtvType##v; CsvDeclare(int,CtvOffs##v);
+#define CtvAccess(v)            (*((CtvType##v *)(CthCpvAccess(CthData)+CsvAccess(CtvOffs##v))))
+#define CtvInitialize(t,v)      if (CmiMyRank()==0) (CsvAccess(CtvOffs##v)=CthRegister(sizeof(CtvType##v)));
+#endif /* CMK_THREADS_USE_JB_TWEAKING_ORIGIN */
+
 #if CMK_THREADS_USE_JB_TWEAKING_EXEMPLAR
 CthCpvExtern(char*,CthData);
 extern int CthRegister CMK_PROTO((int));
index f472b6d5e6cd86bce4e06aba90c24c0956910d12..ae95e1c3959f1651f18bc2739a9ec3780641428b 100644 (file)
@@ -51,6 +51,10 @@ void CmiMemoryInit(argv)
 #define memalign CmiMemory_Gnu_memalign
 #define valloc   CmiMemory_Gnu_valloc
 
+#ifndef _PAGESZ
+static int _PAGESZ;
+#endif
+
 #undef sun /* I don't care if it's a sun, dangit.  No special treatment. */
 #undef BSD /* I don't care if it's BSD.  Same thing. */
 #include "gnumalloc.c"
@@ -66,6 +70,9 @@ void CmiMemoryInit(argv)
 void CmiMemoryInit(argv)
 char **argv;
 {
+#ifndef _PAGESZ
+  _PAGESZ = getpagesize();
+#endif
 }
 
 char *malloc(size)
index da920765ad05917db90df5ca184dc80584acfcab..c0daffb237bd8d1c0063f30302f6e6f302ad5ae4 100644 (file)
  * REVISION HISTORY:
  *
  * $Log$
- * Revision 1.29  1997-03-21 02:18:05  milind
+ * Revision 1.30  1997-03-25 23:09:02  milind
+ * Got threads to work on 64-bit irix. Had to add JB_TWEAKING_ORIGIN flag to
+ * all the conv-mach.h files. Also, _PAGESZ was undefined on irix. Added
+ * code to memory.c to make it a static variable.
+ *
+ * Revision 1.29  1997/03/21 02:18:05  milind
  * Fixed a bug due to thread_current not accessed thru Cpv macros.
  *
  * Revision 1.28  1997/03/19 05:36:50  jyelon
@@ -424,7 +429,7 @@ static void CthBeginThread(CthThread f, CthThread t)
 CthThread CthCreate(fn, arg, size)
 CthVoidFn fn; void *arg; int size;
 {
-  CthThread  result; char *oldsp, *newsp; int offs, erralloc;
+  CthThread  result; char *oldsp, *newsp; size_t offs; int erralloc;
   if (size==0) size = STACKSIZE;
   result = (CthThread)CmiAlloc(sizeof(struct CthThreadStruct) + size);
   oldsp = (char *)alloca(0);
@@ -744,6 +749,229 @@ int size;
 
 #endif
 
+#if CMK_THREADS_USE_JB_TWEAKING_ORIGIN
+
+#include <stdio.h>
+#include <setjmp.h>
+#include <sys/types.h>
+
+#define STACKSIZE (32768)
+#define SLACK     256
+
+CthCpvDeclare(char *,CthData);
+
+typedef struct { jmp_buf jb; } jmpb;
+
+struct CthThreadStruct
+{
+  char cmicore[CmiMsgHeaderSizeBytes]; /* So we can enqueue them */
+  jmp_buf    jb;
+  CthVoidFn  fn;
+  void      *arg;
+  CthVoidFn  awakenfn;
+  CthThFn    choosefn;
+  char      *data;
+  int        datasize;
+  double     stack[1];
+};
+
+
+static jmp_buf thread_launching;
+CthCpvStatic(CthThread, thread_current);
+CthCpvStatic(CthThread, thread_exiting);
+CthCpvStatic(int, thread_growsdown);
+CthCpvStatic(int, thread_datasize);
+static size_t thread_jb_offsets[10];
+static int thread_jb_count;
+
+#define ABS(a) (((a) > 0)? (a) : -(a) )
+
+int CthImplemented()
+    { return 1; }
+
+static void CthInitSub1(jmpb *bufs, size_t *frames, int n)
+{
+  double d;
+  frames[n] = (size_t) &d;
+  setjmp(bufs[n].jb);
+  if (n==0) return;
+  CthInitSub1(bufs, frames, n-1);
+}
+
+static void CthInitSub2()
+{
+  if (setjmp(thread_launching)) {
+    (CthCpvAccess(thread_current)->fn)(CthCpvAccess(thread_current)->arg);
+    exit(1);
+  }
+}
+
+void CthInit()
+{
+  size_t frames[2];
+  jmpb bufs[2];
+  int i, j, size; 
+  size_t delta, *p0, *p1;
+
+  CthCpvAccess(thread_datasize)=1;
+  CthCpvAccess(thread_current)=(CthThread)CmiAlloc(sizeof(struct CthThreadStruct));
+  CthCpvAccess(thread_current)->fn=0;
+  CthCpvAccess(thread_current)->arg=0;
+  CthCpvAccess(thread_current)->data=0;
+  CthCpvAccess(thread_current)->datasize=0;
+  CthCpvAccess(thread_current)->awakenfn = 0;
+  CthCpvAccess(thread_current)->choosefn = 0;
+
+  /* analyze the activation record. */
+  CthInitSub1(bufs, frames, 1);
+  CthInitSub2();
+  CthCpvAccess(thread_growsdown) = (frames[0] < frames[1]);
+  size = (sizeof(jmpb)/sizeof(size_t));
+  delta = frames[0]-frames[1];
+  p0 = (size_t *)(bufs+0);
+  p1 = (size_t *)(bufs+1);
+  thread_jb_count = 0;
+  for (i=0; i<size; i++) {
+    if (thread_jb_count==10) goto fail;
+    if ((p0[i]-p1[i])==delta) {
+      thread_jb_offsets[thread_jb_count++] = i;
+      ((size_t *)(&thread_launching))[i] -= (size_t)(frames[1]);
+    }
+  }
+  if (thread_jb_count == 0) goto fail;
+  return;
+fail:
+  CmiPrintf("Thread initialization failed.\n");
+  exit(1);
+}
+
+CthThread CthSelf()
+{
+  return CthCpvAccess(thread_current);
+}
+
+static void CthTransfer(t)
+CthThread t;
+{
+  CthCpvAccess(thread_current) = t;
+  CthCpvAccess(CthData) = t->data;
+  longjmp(t->jb, 1);
+}
+
+void CthFixData(t)
+CthThread t;
+{
+  if (t->data == 0) {
+    t->datasize = CthCpvAccess(thread_datasize);
+    t->data = (char *)malloc(CthCpvAccess(thread_datasize));
+    return;
+  }
+  if (t->datasize != CthCpvAccess(thread_datasize)) {
+    t->datasize = CthCpvAccess(thread_datasize);
+    t->data = (char *)realloc(t->data, t->datasize);
+    return;
+  }
+}
+
+static void CthFreeNow(t)
+CthThread t;
+{
+  if (t->data) free(t->data); 
+  CmiFree(t);
+}
+
+void CthResume(t)
+CthThread t;
+{
+  int i;
+  if (t == CthCpvAccess(thread_current)) return;
+  CthFixData(t);
+  if ((setjmp(CthCpvAccess(thread_current)->jb))==0)
+    CthTransfer(t);
+  if (CthCpvAccess(thread_exiting))
+    { CthFreeNow(CthCpvAccess(thread_exiting)); CthCpvAccess(thread_exiting)=0; }
+}
+
+CthThread CthCreate(fn, arg, size)
+CthVoidFn fn; void *arg; int size;
+{
+  CthThread  result; int i, sp;
+  if (size==0) size = STACKSIZE;
+  result = (CthThread)CmiAlloc(sizeof(struct CthThreadStruct) + size);
+  sp = ((int)(result->stack));
+  sp += (CthCpvAccess(thread_growsdown)) ? (size - SLACK) : SLACK;
+  result->fn = fn;
+  result->arg = arg;
+  result->awakenfn = 0;
+  result->choosefn = 0;
+  result->data = 0;
+  result->datasize = 0;
+  memcpy(&(result->jb), &thread_launching, sizeof(thread_launching));
+  for (i=0; i<thread_jb_count; i++)
+    ((size_t *)(&(result->jb)))[thread_jb_offsets[i]] += sp;
+  return result;
+}
+
+void CthFree(t)
+CthThread t;
+{
+  if (t==CthCpvAccess(thread_current)) {
+    CthCpvAccess(thread_exiting) = t;
+  } else CthFreeNow(t);
+}
+
+static void CthNoStrategy()
+{
+  CmiPrintf("Called CthAwaken or CthSuspend before calling CthSetStrategy.\n");
+  exit(1);
+}
+
+void CthSuspend()
+{
+  CthThread next;
+  if (CthCpvAccess(thread_current)->choosefn == 0) CthNoStrategy();
+  next = CthCpvAccess(thread_current)->choosefn();
+  CthResume(next);
+}
+
+void CthAwaken(th)
+CthThread th;
+{
+  if (th->awakenfn == 0) CthNoStrategy();
+  th->awakenfn(th);
+}
+
+void CthSetStrategy(t, awkfn, chsfn)
+CthThread t;
+CthVoidFn awkfn;
+CthThFn chsfn;
+{
+  t->awakenfn = awkfn;
+  t->choosefn = chsfn;
+}
+
+void CthYield()
+{
+  CthAwaken(CthCpvAccess(thread_current));
+  CthSuspend();
+}
+
+int CthRegister(size)
+int size;
+{
+  int result;
+  int align = 1;
+  while (size>align) align<<=1;
+  CthCpvAccess(thread_datasize) = (CthCpvAccess(thread_datasize)+align-1) & ~(align-1);
+  result = CthCpvAccess(thread_datasize);
+  CthCpvAccess(thread_datasize) += size;
+  CthFixData(CthCpvAccess(thread_current));
+  CthCpvAccess(CthData) = CthCpvAccess(thread_current)->data;
+  return result;
+}
+
+#endif
+
 /*****************************************************************************
  *
  * threads: implementation CMK_THREADS_USE_JB_TWEAKING_EXEMPLAR