Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 1265 → Rev 1266

/demos/trunk/loader/common/nload.c
57,6 → 57,13
:::"eax","ebx","ecx","edx");
end_oneshot_task();
#ifdef TASK_OUTPUT
#ifdef OS_SHARK
sprintf(tmp,"[--END--]");
printf_xy((get_current_exec_task() % 5) * 9 + 34,get_current_exec_task() / 5 + 5, GREEN, tmp);
#endif
#endif
 
return NULL;
114,6 → 121,13
}
 
end_periodic_task();
 
#ifdef TASK_OUTPUT
#ifdef OS_SHARK
sprintf(tmp,"[--END--]");
printf_xy((get_current_exec_task() % 5) * 9 + 34,get_current_exec_task() / 5 + 5, GREEN, tmp);
#endif
#endif
return NULL;
167,7 → 181,14
}
 
end_back_task();
#ifdef TASK_OUTPUT
#ifdef OS_SHARK
sprintf(tmp,"[--END--]");
printf_xy((get_current_exec_task() % 5) * 9 + 34,get_current_exec_task() / 5 + 5, GREEN, tmp);
#endif
#endif
return NULL;
}
/demos/trunk/loader/shark/shark.c
8,7 → 8,7
extern int total_loader_task;
extern int total_loader_contract;
 
/* Delay Calibration */
/* Runtime Calibration */
int calibrate_cycle()
{
long long i;
98,11 → 98,7
 
}
 
int calibration_func() {
return kern_gettime(NULL);
 
}
 
/* Set the zero_time and post the first activation event */
void start_simulation() {
int i;
128,7 → 124,7
 
}
 
 
/* Activate task and post the new activation event */
void loader_task_activate(struct loader_task *l) {
struct timespec actual_time,end_time;