Changeset 428 for trunk/kernel/kern/printk.c
- Timestamp:
- Jan 29, 2018, 6:08:07 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/printk.c
r408 r428 383 383 } 384 384 385 /////////////////////////////////386 void _panic( char * format , ... )387 {388 va_list args;389 uint32_t save_sr;390 391 // get pointers on TXT0 chdev392 xptr_t txt0_xp = chdev_dir.txt_tx[0];393 cxy_t txt0_cxy = GET_CXY( txt0_xp );394 chdev_t * txt0_ptr = GET_PTR( txt0_xp );395 396 // get extended pointer on remote TXT0 chdev lock397 xptr_t lock_xp = XPTR( txt0_cxy , &txt0_ptr->wait_lock );398 399 // get TXT0 lock in busy waiting mode400 remote_spinlock_lock_busy( lock_xp , &save_sr );401 402 // call kernel_printf on TXT0, in busy waiting mode403 va_start( args , format );404 kernel_printf( format , &args );405 va_end( args );406 407 // release lock408 remote_spinlock_unlock_busy( lock_xp , save_sr );409 410 hal_disable_irq( NULL );411 412 while (1)413 {414 hal_core_sleep();415 }416 }417 418 385 //////////////////////////////////// 419 386 void assert( bool_t condition,
Note: See TracChangeset
for help on using the changeset viewer.