/demos/trunk/loader/shark/func.h |
---|
65,7 → 65,7 |
#define generic_task_endcycle() task_endcycle() |
/* The job is finished */ |
#define generic_end_simulation() exit(0) |
#define generic_end_simulation() sys_end() |
/* Exit from simulation */ |
#define printf cprintf |
/demos/trunk/loader/shark/shark.c |
---|
137,11 → 137,11 |
FTrace_send_chunk(main_chunk, 0, FTRACE_CHUNK_FLAG_FREE | FTRACE_CHUNK_FLAG_CYC); |
exit(0); |
sys_end(); |
#else |
exit(0); |
sys_end(); |
#endif |
178,7 → 178,7 |
#else |
exit(0); |
sys_end(); |
#endif |
/demos/trunk/loader/shark/initfile.c |
---|
121,6 → 121,8 |
device_drivers_close(); |
sys_shutdown_message("-- S.Ha.R.K. Closed --\n"); |
sys_abort_shutdown(0); |
return NULL; |
} |
136,7 → 138,7 |
shutdown_task_PID = task_create("Shutdown Task", shutdown_task_body, &nrt, NULL); |
if (shutdown_task_PID == NIL) { |
sys_shutdown_message("Error: Cannot create shutdown task\n"); |
exit(0); |
sys_end(); |
} |
} |