33,6 → 33,7 |
struct loader_task *l = (struct loader_task *)(arg); |
char tmp[20]; |
|
if (l->act_current == 0) l->act_current = 1; |
#ifdef TASK_OUTPUT |
sprintf(tmp,"[ONESHOT]"); |
printf_xy((get_current_exec_task() % 5) * 9 + 34,get_current_exec_task() / 5 + 5, GREEN, tmp); |
40,6 → 41,7 |
|
exec_cycles = (long long)(TIMESPEC2USEC(&l->exec[l->act_current-1])) * CALIBRATION_DELTA / cal_cycles; |
|
/* Execution delay */ |
for (i=0;i<exec_cycles;i++) |
__asm__ __volatile__ ("xorl %%eax,%%eax\n\t" |
"cpuid\n\t" |
64,6 → 66,8 |
struct loader_task *l = (struct loader_task *)(arg); |
char tmp[20]; |
|
if (l->act_current == 0) l->act_current = 1; |
|
while(1) { |
|
#ifdef TASK_OUTPUT |
72,7 → 76,8 |
#endif |
|
exec_cycles = (long long)(TIMESPEC2USEC(&l->exec[l->act_current-1])) * CALIBRATION_DELTA / cal_cycles; |
|
|
/* Execution delay */ |
for (i=0;i<exec_cycles;i++) |
__asm__ __volatile__ ("xorl %%eax,%%eax\n\t" |
"cpuid\n\t" |
102,6 → 107,8 |
struct loader_task *l = (struct loader_task *)(arg); |
char tmp[20]; |
|
if (l->act_current == 0) l->act_current = 1; |
|
while(1) { |
|
#ifdef TASK_OUTPUT |
111,6 → 118,7 |
|
exec_cycles = (long long)(TIMESPEC2USEC(&l->exec[l->act_current-1])) * CALIBRATION_DELTA / cal_cycles; |
|
/* Execution delay */ |
for (i=0;i<exec_cycles;i++) |
__asm__ __volatile__ ("xorl %%eax,%%eax\n\t" |
"cpuid\n\t" |
173,7 → 181,7 |
int start_environment() |
{ |
|
struct timespec total = {20,0}; |
extern struct timespec total_time; |
|
generic_calibrate_cycle(); |
|
183,7 → 191,7 |
|
generic_start_simulation(); |
|
generic_set_simulation_time(&total); |
generic_set_simulation_time(&total_time); |
|
return 0; |
|