Changeset 457 for trunk/hal/tsar_mips32/drivers/soclib_pic.c
- Timestamp:
- Aug 2, 2018, 11:47:13 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/tsar_mips32/drivers/soclib_pic.c
r451 r457 137 137 #endif 138 138 139 // analyse status and handle up to 3 pending IRQ (one WTI, one HWI, one PTI)139 // analyse status and handle up to 3 pending IRQs (one WTI, one HWI, one PTI) 140 140 141 141 if( wti_status ) // pending WTI … … 150 150 #if DEBUG_HAL_IRQS 151 151 if (DEBUG_HAL_IRQS < cycle ) 152 printk("\n[DBG] %s : core[%x,%d] received anIPI\n", __FUNCTION__ , local_cxy , core->lid );152 printk("\n[DBG] %s : core[%x,%d] handling IPI\n", __FUNCTION__ , local_cxy , core->lid ); 153 153 #endif 154 154 // acknowledge IRQ (this require an XCU read) … … 156 156 157 157 // check RPC FIFO, and activate or create a RPC thread 158 // condition is always true, but we must use the ack value 158 // condition is always true, but we use the ack value 159 // to avoid a GCC warning 159 160 if( ack + 1 ) rpc_check(); 160 161 } … … 182 183 #if DEBUG_HAL_IRQS 183 184 if (DEBUG_HAL_IRQS < cycle ) 184 printk("\n[DBG] %s : core[%x,%d] receivedexternal WTI %d\n",185 printk("\n[DBG] %s : core[%x,%d] handling external WTI %d\n", 185 186 __FUNCTION__ , local_cxy , core->lid , index ); 186 187 #endif … … 216 217 #if DEBUG_HAL_IRQS 217 218 if (DEBUG_HAL_IRQS < cycle ) 218 printk("\n[DBG] %s : core[%x,%d] receivedHWI %d\n",219 printk("\n[DBG] %s : core[%x,%d] handling HWI %d\n", 219 220 __FUNCTION__ , local_cxy , core->lid , index ); 220 221 #endif … … 232 233 #if DEBUG_HAL_IRQS 233 234 if (DEBUG_HAL_IRQS < cycle ) 234 printk("\n[DBG] %s : core[%x,%d] receivedPTI %d\n",235 printk("\n[DBG] %s : core[%x,%d] handling PTI %d\n", 235 236 __FUNCTION__ , core->lid , local_cxy , index ); 236 237 #endif … … 239 240 240 241 // execute all actions related to TICK event 241 // condition is always true, but we must use the ack value 242 // condition is always true, but we use the ack value 243 // to avoid a GCC warning 242 244 if( ack + 1 ) core_clock( core ); 243 245 } … … 515 517 { 516 518 // calling core local index 517 lid_t lid = CURRENT_ CORE->lid;519 lid_t lid = CURRENT_THREAD->core->lid; 518 520 519 521 // get XCU segment base … … 533 535 { 534 536 // calling core local index 535 lid_t lid = CURRENT_ CORE->lid;537 lid_t lid = CURRENT_THREAD->core->lid; 536 538 537 539 // get XCU segment base
Note: See TracChangeset
for help on using the changeset viewer.