Changeset 446 for trunk/kernel/kern/printk.c
- Timestamp:
- Jun 19, 2018, 5:12:57 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/printk.c
r445 r446 28 28 #include <remote_spinlock.h> 29 29 #include <cluster.h> 30 #include <thread.h> 30 31 #include <chdev.h> 31 32 #include <printk.h> … … 399 400 chdev_t * txt0_ptr = GET_PTR( txt0_xp ); 400 401 401 // get extended pointer on remote TXT0 chdevlock402 // get extended pointer on remote TXT0 lock 402 403 xptr_t lock_xp = XPTR( txt0_cxy , &txt0_ptr->wait_lock ); 403 404 … … 406 407 407 408 // call nolock_printk to print function_name 408 nolock_printk("\n[PANIC] in %s : " , function_name ); 409 nolock_printk("\n[PANIC] on core[%x,%d] in %s : " , 410 local_cxy , CURRENT_THREAD->core->lid , function_name ); 409 411 410 412 // call kernel_printf on TXT0, in busy waiting to print format … … 417 419 418 420 // suicide 419 sys_exit( EXIT_FAILURE);421 while( 1 ) asm volatile ("nop"); 420 422 } 421 423 }
Note: See TracChangeset
for help on using the changeset viewer.