removed the alignment bug in Common.uth/machine.c
authorMilind Bhandarkar <milind@cs.uiuc.edu>
Fri, 21 Mar 1997 19:23:57 +0000 (19:23 +0000)
committerMilind Bhandarkar <milind@cs.uiuc.edu>
Fri, 21 Mar 1997 19:23:57 +0000 (19:23 +0000)
src/arch/net-irix/conv-mach.h
src/arch/uth-hp-cc/conv-mach.h
src/arch/uth/machine.c

index 8871a887e556dfb3c4bc9c3f18c1de5dca15242a..21ca4e285ae3051f09144ef82011d7ff66157394 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.6  1997-03-19 23:17:47  milind
+ * Revision 1.7  1997-03-21 19:23:58  milind
+ * removed the alignment bug in Common.uth/machine.c
+ *
+ * Revision 1.6  1997/03/19 23:17:47  milind
  * Got net-irix to work. Had to modify jsleep to deal with restaring
  * system calls on interrupts.
  *
 #define _CONV_MACH_H
 
 #define CMK_ASYNC_NOT_NEEDED                               0
-#define CMK_ASYNC_USE_FIOASYNC_AND_FIOSETOWN               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_ASYNC_USE_F_SETFL_AND_F_SETOWN                 1
 
 #define CMK_CMIDELIVERS_USE_COMMON_CODE                    1
 #define CMK_CMIDELIVERS_USE_SPECIAL_CODE                   0
index 66ee687c22606251561602b9f5bf550f0ffcf7d6..a399c002da590812dd463f3a3bd28c9c0585c094 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.8  1997-03-19 04:58:23  jyelon
+ * 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
  * Removed the CMK_DEFAULT_MAIN_USES_SIMULATOR_CODE flag.
  *
  * Revision 1.7  1997/02/13 09:32:00  jyelon
@@ -77,8 +80,8 @@
 
 #define CMK_MACHINE_NAME                                   "uth-hp-cc"
 
-#define CMK_MALLOC_USE_GNU_MALLOC                          0
-#define CMK_MALLOC_USE_OS_BUILTIN                          1
+#define CMK_MALLOC_USE_GNU_MALLOC                          1
+#define CMK_MALLOC_USE_OS_BUILTIN                          0
 
 #define CMK_MSG_HEADER_SIZE_BYTES                          4
 #define CMK_MSG_HEADER_BLANK_SPACE                         0
index c8c5df015c6d53b8b35d503164d057a3ca475311..c9782ca8fd5cab9bf92a73f889d1f42fdabf4f66 100644 (file)
  * REVISION HISTORY:
  *
  * $Log$
- * Revision 1.21  1997-03-19 04:31:36  jyelon
+ * Revision 1.22  1997-03-21 19:23:57  milind
+ * removed the alignment bug in Common.uth/machine.c
+ *
+ * Revision 1.21  1997/03/19 04:31:36  jyelon
  * Redesigned ConverseInit
  *
  * Revision 1.20  1997/02/13 09:31:39  jyelon
@@ -112,25 +115,6 @@ static char *DeleteArg(argv)
   return res;
 }
 
-static void mycpy(dst, src, bytes)
-    double *dst; double *src; int bytes;
-{
-        unsigned char *cdst, *csrc;
-
-        while(bytes>8)
-        {
-                *dst++ = *src++;
-                bytes -= 8;
-        }
-        cdst = (unsigned char *) dst;
-        csrc = (unsigned char *) src;
-        while(bytes)
-        {
-                *cdst++ = *csrc++;
-                bytes--;
-        }
-}
-
 /*****************************************************************************
  *
  * Memory management.
@@ -424,7 +408,7 @@ int size;
 char * msg;
 {
   char *buf = (char *)CmiAlloc(size);
-  mycpy((double *)buf,(double *)msg,size);
+  memcpy(buf,msg,size);
   FIFO_EnQueue(CmiQueues[destPE],buf);
 }
 
@@ -434,7 +418,7 @@ int size;
 char * msg;
 {
   char *buf = (char *)CmiAlloc(size);
-  mycpy((double *)buf,(double *)msg,size);
+  memcpy(buf,msg,size);
   FIFO_EnQueue(CmiQueues[destPE],buf);
 }