- File:
-
- 1 edited
-
libcfa/src/concurrency/kernel/startup.cfa (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel/startup.cfa
ra1538cd rdddb3dd0 73 73 static void __kernel_first_resume( processor * this ); 74 74 static void __kernel_last_resume ( processor * this ); 75 static void init(processor & this, const char name[], cluster & _cltr , void (*fnc) (void *), void * arg);75 static void init(processor & this, const char name[], cluster & _cltr); 76 76 static void deinit(processor & this); 77 77 static void doregister( struct cluster & cltr ); … … 198 198 ( this.terminated ){}; 199 199 ( this.runner ){}; 200 init( this, "Main Processor", *mainCluster , 0p, 0p);200 init( this, "Main Processor", *mainCluster ); 201 201 kernel_thread = pthread_self(); 202 202 … … 452 452 } 453 453 454 static void init(processor & this, const char name[], cluster & _cltr , void (*fnc) (void *), void * arg) with( this ) {454 static void init(processor & this, const char name[], cluster & _cltr) with( this ) { 455 455 this.name = name; 456 456 this.cltr = &_cltr; … … 464 464 this.io.dirty = false; 465 465 466 this.init.fnc = fnc;467 this.init.arg = arg;468 469 466 this.idle = eventfd(0, 0); 470 467 if (idle < 0) { … … 516 513 } 517 514 518 void ?{}(processor & this, const char name[], cluster & _cltr , void (*fnc) (void *), void * arg) {515 void ?{}(processor & this, const char name[], cluster & _cltr) { 519 516 ( this.terminated ){}; 520 517 ( this.runner ){}; 521 518 522 519 disable_interrupts(); 523 init( this, name, _cltr , fnc, arg);520 init( this, name, _cltr ); 524 521 enable_interrupts( __cfaabi_dbg_ctx ); 525 522
Note:
See TracChangeset
for help on using the changeset viewer.