Changeset 103 for trunk/kernel/kern/printk.c
- Timestamp:
- Jun 29, 2017, 6:22:27 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/printk.c
r23 r103 375 375 remote_spinlock_lock_busy( txt0_lock_xp , &save_sr ); 376 376 377 // call kernel_printf in busy waiting mode377 // call kernel_printf on TXT0, in busy waiting mode 378 378 va_start( args , format ); 379 379 kernel_printf( 0 , 1 , format , &args ); … … 384 384 } 385 385 386 ////////////////////////////////////// 387 void user_printk( char * format , ...)386 //////////////////////////////////////// 387 void nolock_printk( char * format , ...) 388 388 { 389 389 va_list args; 390 390 391 // get calling thread TXT channel TODO 392 uint32_t channel = 0; 393 394 // call kernel_printf in descheduling mode 391 // call kernel_printf on TXT0, in busy waiting mode 395 392 va_start( args , format ); 396 kernel_printf( channel, 0, format , &args );393 kernel_printf( 0 , 1 , format , &args ); 397 394 va_end( args ); 398 395 }
Note: See TracChangeset
for help on using the changeset viewer.