Fixed uninitialised FunBind fun_tick field
[ghc-hetmet.git] / rts / Main.c
index 6aef280..745d775 100644 (file)
@@ -12,7 +12,6 @@
 #include "Rts.h"
 #include "RtsAPI.h"
 #include "SchedAPI.h"
-#include "Schedule.h"
 #include "RtsFlags.h"
 #include "RtsUtils.h"
 #include "Prelude.h"
@@ -102,9 +101,10 @@ int main(int argc, char *argv[])
 
     /* ToDo: want to start with a larger stack size */
     { 
-       void *cap = rts_lock();
+       Capability *cap = rts_lock();
        cap = rts_evalLazyIO(cap,(HaskellObj)(void *)mainIO_closure, NULL);
        status = rts_getSchedStatus(cap);
+       taskTimeStamp(myTask());
        rts_unlock(cap);
     }