Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 1263 → Rev 1264

/demos/trunk/loader/common/nload.c
37,6 → 37,9
#endif
#endif
 
start_oneshot_task();
 
/* to avoid problem if the task start inside the create function */
if (l->act_current == 0) l->act_current = 1;
#ifdef TASK_OUTPUT
#ifdef OS_SHARK
53,6 → 56,8
"cpuid\n\t"
:::"eax","ebx","ecx","edx");
end_oneshot_task();
 
return NULL;
}
77,10 → 82,14
#endif
#endif
 
start_periodic_task();
 
if (l->act_current == 0) l->act_current = 1;
 
while(1) {
 
start_job_periodic_task();
 
#ifdef TASK_OUTPUT
#ifdef OS_SHARK
sprintf(tmp,"C[%06d]",act);
96,11 → 105,15
"cpuid\n\t"
:::"eax","ebx","ecx","edx");
end_job_periodic_task();
 
generic_task_endcycle();
act++;
}
 
end_periodic_task();
return NULL;
124,10 → 137,14
#endif
#endif
 
start_back_task();
 
if (l->act_current == 0) l->act_current = 1;
 
while(1) {
 
start_job_back_task();
 
#ifdef TASK_OUTPUT
#ifdef OS_SHARK
sprintf(tmp,"B[%06d]",act);
143,9 → 160,14
"cpuid\n\t"
:::"eax","ebx","ecx","edx");
end_job_back_task();
 
act++;
}
}
 
end_back_task();
return NULL;
}
/demos/trunk/loader/shark/func.h
82,6 → 82,21
#define printf cprintf
/* Printf standard function */
 
/* TASK RUNTIME FUNCTIONS */
 
extern __inline__ void start_oneshot_task(void) {}
extern __inline__ void end_oneshot_task(void) {}
 
extern __inline__ void start_periodic_task(void) {}
extern __inline__ void start_job_periodic_task(void) {}
extern __inline__ void end_job_periodic_task(void) {}
extern __inline__ void end_periodic_task(void) {}
 
extern __inline__ void start_back_task(void) {}
extern __inline__ void start_job_back_task(void) {}
extern __inline__ void end_job_back_task(void) {}
extern __inline__ void end_back_task(void) {}
 
#endif