Changeset 679 for trunk/hal/tsar_mips32/drivers/soclib_pic.c
- Timestamp:
- Nov 20, 2020, 12:30:31 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/tsar_mips32/drivers/soclib_pic.c
r635 r679 58 58 soclib_pic_cluster_t * ext_ptr = LOCAL_CLUSTER->pic_extend; 59 59 60 assert( (ext_ptr->first_free_wti < ext_ptr->wti_nr) ,60 assert( __FUNCTION__, (ext_ptr->first_free_wti < ext_ptr->wti_nr) , 61 61 "no free WTI found : too much external IRQs\n"); 62 62 … … 147 147 if( index < LOCAL_CLUSTER->cores_nr ) // it is an IPI 148 148 { 149 assert( (index == core->lid) , "illegal IPI index" );149 assert( __FUNCTION__, (index == core->lid) , "illegal IPI index" ); 150 150 151 151 #if DEBUG_HAL_IRQS … … 230 230 index = pti_status - 1; 231 231 232 assert( (index == core->lid) , "unconsistent PTI index\n");232 assert( __FUNCTION__, (index == core->lid) , "unconsistent PTI index\n"); 233 233 234 234 #if DEBUG_HAL_IRQS … … 319 319 } 320 320 321 assert( (cluster_ext_ptr != NULL) , "cannot allocate memory for cluster extension");321 assert( __FUNCTION__, (cluster_ext_ptr != NULL) , "cannot allocate memory for cluster extension"); 322 322 323 323 // get XCU characteristics from the XCU config register … … 381 381 382 382 if( (func == DEV_FUNC_IOC && impl == IMPL_IOC_BDV) || (func == DEV_FUNC_NIC) || 383 (func == DEV_FUNC_TXT && impl == IMPL_TXT_TTY) || (func == DEV_FUNC_IOB) ) 383 (func == DEV_FUNC_TXT && impl == IMPL_TXT_TTY) || (func == DEV_FUNC_IOB) ) // external IRQ => WTI 384 384 { 385 385 // get external IRQ index 386 uint32_t hwi_id ;386 uint32_t hwi_id = 0; 387 387 if ( func == DEV_FUNC_IOC ) hwi_id = iopic_input.ioc[channel]; 388 388 else if( func == DEV_FUNC_TXT && is_rx ) hwi_id = iopic_input.txt_rx[channel]; … … 391 391 else if( (func == DEV_FUNC_NIC) && !is_rx ) hwi_id = iopic_input.nic_tx[channel]; 392 392 else if( func == DEV_FUNC_IOB ) hwi_id = iopic_input.iob; 393 else assert( false , "illegal device functionnal type\n");393 else assert( __FUNCTION__, false , "illegal device functionnal type\n"); 394 394 395 395 // get a WTI mailbox from local XCU descriptor … … 453 453 else 454 454 { 455 assert( false , "illegal device functionnal type\n" );455 assert( __FUNCTION__, false , "illegal device functionnal type\n" ); 456 456 } 457 457 } // end soclib_pic_bind_irq(); … … 488 488 else 489 489 { 490 assert( false , "illegal IRQ type\n" );490 assert( __FUNCTION__, false , "illegal IRQ type\n" ); 491 491 } 492 492 } // end soclib_pic_enable_irq() … … 523 523 else 524 524 { 525 assert( false , "illegal IRQ type\n" );525 assert( __FUNCTION__, false , "illegal IRQ type\n" ); 526 526 } 527 527 } // end soclib_pic_enable_irq()
Note: See TracChangeset
for help on using the changeset viewer.