- Timestamp:
- Aug 14, 2017, 2:51:39 PM (7 years ago)
- Location:
- trunk/kernel/kern
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/cluster.c
r296 r374 305 305 if( (lpid >= CONFIG_MAX_PROCESS_PER_CLUSTER) || (owner_cxy != local_cxy) ) 306 306 { 307 printk("\n[PANIC] in %s : illegal PID\n", __FUNCTION__ ); 308 hal_core_sleep(); 307 panic("illegal PID"); 309 308 } 310 309 -
trunk/kernel/kern/dqdt.c
r286 r374 72 72 if( (x_size > 32) || (y_size > 32) ) 73 73 { 74 printk("\n[PANIC] in %s : illegal mesh size for DQDT support\n", 75 __FUNCTION__ ); 76 hal_core_sleep(); 74 panic("illegal mesh size for DQDT support"); 77 75 } 78 76 -
trunk/kernel/kern/printk.h
r372 r374 102 102 char * format , ... ); 103 103 104 #define panic(fmt, ...) _panic("[PANIC] %s(): " fmt , __func__, ##__VA_ARGS__)104 #define panic(fmt, ...) _panic("[PANIC] %s(): " fmt "\n", __func__, ##__VA_ARGS__) 105 105 106 106 /////////////////////////////////////////////////////////////////////////////////// -
trunk/kernel/kern/process.c
r373 r374 245 245 if( process->th_nr != 0 ) 246 246 { 247 panic("process %x in cluster %x has still active threads \n",247 panic("process %x in cluster %x has still active threads", 248 248 process->pid , local_cxy ); 249 249 } -
trunk/kernel/kern/rpc.c
r337 r374 85 85 void __attribute__((noinline)) rpc_undefined() 86 86 { 87 printk("\n[PANIC] ‰s called in cluster %x\n", __FUNCTION__ , local_cxy ); 88 hal_core_sleep(); 87 panic("called in cluster %x", local_cxy ); 89 88 } 90 89 … … 1959 1958 if( this->trdid != rpc_fifo->owner ) 1960 1959 { 1961 printk("\n[PANIC] in %s : thread %x on core[%x,%d] not owner of RPC_FIFO\n", 1962 __FUNCTION__, this->trdid, local_cxy, this->core->lid ); 1963 hal_core_sleep(); 1960 panic("thread %x on core[%x,%d] not owner of RPC_FIFO", 1961 this->trdid, local_cxy, this->core->lid ); 1964 1962 } 1965 1963 -
trunk/kernel/kern/scheduler.c
r337 r374 133 133 if( thread_can_yield() == false ) 134 134 { 135 printk("\n[PANIC] in %s : thread %x in process %x on core[%x][%d]" 136 " did not released all locks\n", 137 __FUNCTION__ , thread->trdid , thread->process->pid, 138 local_cxy , thread->core->lid ); 139 hal_core_sleep(); 135 panic("thread %x in process %x on core[%x][%d]" 136 " did not released all locks", 137 thread->trdid , thread->process->pid, 138 local_cxy , thread->core->lid ); 140 139 } 141 140 -
trunk/kernel/kern/thread.c
r373 r374 471 471 if( core_lid >= LOCAL_CLUSTER->cores_nr ) 472 472 { 473 panic("illegal core_lid / cores = %d / lid = %d / cxy = %x \n",473 panic("illegal core_lid / cores = %d / lid = %d / cxy = %x", 474 474 LOCAL_CLUSTER->cores_nr , core_lid , local_cxy ); 475 475 }
Note: See TracChangeset
for help on using the changeset viewer.