Changeset 281 for soft/giet_vm/giet_kernel
- Timestamp:
- Jan 30, 2014, 5:32:13 PM (11 years ago)
- Location:
- soft/giet_vm/giet_kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_kernel/irq_handler.c
r279 r281 21 21 #include <ioc_driver.h> 22 22 #include <dma_driver.h> 23 #include <mapping_info.h>23 #include <mapping_info.h> 24 24 #include <utils.h> 25 25 … … 59 59 // get the highest priority active IRQ index 60 60 61 unsigned int icu_out_index = local_id * IRQ_PER_PROCESSOR; 62 61 63 #if USE_XICU 62 ko = _xcu_get_index( cluster_id, local_id, &irq_id );64 ko = _xcu_get_index( cluster_id, icu_out_index, &irq_id ); 63 65 #else 64 ko = _icu_get_index( cluster_id, local_id, &irq_id );66 ko = _icu_get_index( cluster_id, icu_out_index, &irq_id ); 65 67 #endif 66 68 -
soft/giet_vm/giet_kernel/kernel_init.c
r274 r281 261 261 #endif 262 262 263 // GIET-VM cons raint : only one IRQ type per irq_id263 // GIET-VM constraint : only one IRQ type per irq_id 264 264 if ( hwi_mask & swi_mask & pti_mask ) 265 265 { … … 268 268 } 269 269 270 271 // The ICU output index is computed as the local processor id multiplied by 272 // the number of ICU outputs connected to each processor. 273 int icu_out_index = local_pid * IRQ_PER_PROCESSOR; 274 270 275 #if USE_XICU 271 _xcu_set_mask(cluster_xy, local_pid, hwi_mask, IRQ_TYPE_HWI); // set HWI_MASK272 _xcu_set_mask(cluster_xy, local_pid, swi_mask, IRQ_TYPE_SWI); // set SWI_MASK273 _xcu_set_mask(cluster_xy, local_pid, pti_mask, IRQ_TYPE_PTI); // set PTI_MASK276 _xcu_set_mask(cluster_xy, icu_out_index, hwi_mask, IRQ_TYPE_HWI); // set HWI_MASK 277 _xcu_set_mask(cluster_xy, icu_out_index, swi_mask, IRQ_TYPE_SWI); // set SWI_MASK 278 _xcu_set_mask(cluster_xy, icu_out_index, pti_mask, IRQ_TYPE_PTI); // set PTI_MASK 274 279 #else 275 _icu_set_mask(cluster_xy, local_pid, (hwi_mask | pti_mask | swi_mask) );280 _icu_set_mask(cluster_xy, icu_out_index, (hwi_mask | pti_mask | swi_mask) ); 276 281 #endif 277 282
Note: See TracChangeset
for help on using the changeset viewer.