Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 1550 → Rev 1549

/demos/trunk/first/test2.c
69,11 → 69,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
 
247,7 → 247,7
err = pthread_create(&j, NULL, test_task_variable, NULL);
if (err) {
perror("Could not create task...");
exit(1);
sys_end();
}
 
err=fsf_bind_local_thread_to_server(server, j, (fsf_sched_params_t *)(&pr));
254,7 → 254,7
if (err) {
grx_close();
kern_printf("Could not bind task.. %d", err);
exit(1);
sys_end();
}
 
284,7 → 284,7
if (err) {
grx_close();
perror("Could not create task...");
exit(1);
sys_end();
}
 
err=fsf_bind_local_thread_to_server(server, j,(fsf_sched_params_t *)(&pr));
291,7 → 291,7
if (err) {
grx_close();
perror("Could not bind task..");
exit(1);
sys_end();
}
 
318,7 → 318,7
 
#else
 
exit(0);
sys_end();
 
#endif
}
387,12 → 387,12
if (err) cprintf("(FSF ERROR %d)",err);
//graphic card Initialization
if (grx_init() < 1) {
exit(1);
sys_end();
}
 
if (grx_open(800, 600, 16) < 0) {
cprintf("GRX Err\n");
exit(0);
sys_end();
}
 
layout_screen();
/demos/trunk/first/test.c
298,7 → 298,7
kern_gettime(&endtimer);
endtimer.tv_sec += 20;
kern_event_post(&endtimer, (void (*)(void *))(exit), NULL);
kern_event_post(&endtimer, (void (*)(void *))(sys_end), NULL);
 
hard_task_default_model(ht);
hard_task_def_mit(ht,200000);
/demos/trunk/first/test1.c
258,7 → 258,7
//t1 = task_create("X", edftask, &mhard, NULL);
//if (t1 == NIL) {
// perror("Could not create task X ...");
// exit(1);
// sys_end();
//}
 
hard_task_def_mit(mhard,32000);
267,7 → 267,7
//t2 = task_create("Y", edftask, &mhard, NULL);
//if (t2 == NIL) {
// perror("Could not create task Y ...");
// exit(1);
// sys_end();
//}
 
//group_activate(1);
275,25 → 275,25
err = pthread_create(&j1, NULL, star, (void *)"A");
if (err) {
perror("Could not create task A ...");
exit(1);
sys_end();
}
 
err = pthread_create(&j2, NULL, periodic_star, (void *)"B");
if (err) {
perror("Could not create task B ...");
exit(1);
sys_end();
}
 
err = pthread_create(&j3, NULL, star, (void *)"C");
if (err) {
perror("Could not create task C ...");
exit(1);
sys_end();
}
 
err = pthread_create(&j4, NULL, periodic_star, (void *)"D");
if (err) {
perror("Could not create task D ...");
exit(1);
sys_end();
}
fsf_initialize_contract(&contract1);
378,7 → 378,7
 
} while(ch != ESC);
 
exit(1);
sys_end();
 
return 0;
 
/demos/trunk/first/initfile.c
102,6 → 102,8
 
device_drivers_close();
sys_shutdown_message("-- S.Ha.R.K. Closed --\n");
sys_abort_shutdown(0);
 
return NULL;
}
#define SHUTDOWN_TIMEOUT_SEC 3
116,7 → 118,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(1);
sys_end();
}
 
}