git-svn-id: http://ltt.polymtl.ca/svn@135 04897980-b3bd-0310-b5e0-8ef037075253
authoryangxx <yangxx@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 24 Jul 2003 20:06:19 +0000 (20:06 +0000)
committeryangxx <yangxx@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 24 Jul 2003 20:06:19 +0000 (20:06 +0000)
ltt/branches/yangxx/convert/convert.c

index 7b6d03f5c9b70f5d88477a59d4334c16ab9e848c..4cf284bd1f0d9959d8c5b3ab24612aa11debb3df 100644 (file)
@@ -260,7 +260,13 @@ int main(int argc, char ** argv){
     beat_count = 0;
 
     for(j=1;j<cpu;j++)has_event[j] = FALSE;
-    for(j=0;j<cpu;j++) write_pos[j] = buf_out[j];
+    for(j=0;j<cpu;j++){
+      memset((void*)buf_out[j], 0, block_size);
+      write_pos[j] = buf_out[j];
+    }
+    memset((void*)buf_intr, 0, block_size);    
+    memset((void*)buf_fac, 0, block_size);    
+    memset((void*)buf_proc, 0, block_size);    
     write_pos_intr = buf_intr;
     write_pos_fac = buf_fac;
     write_pos_proc = buf_proc;
This page took 0.031999 seconds and 4 git commands to generate.