Ignore:
Timestamp:
Apr 2, 2015, 1:18:56 PM (9 years ago)
Author:
cfuguet
Message:

reconf: consider the IRQ_PER_PROCESSOR constant when connecting XICU
irqs.

Location:
branches/reconfiguration/platforms/tsar_generic_iob
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/reconfiguration/platforms/tsar_generic_iob/top.cpp

    r961 r963  
    11601160                XCU_NB_WTI,
    11611161                XCU_NB_OUT,
     1162                IRQ_PER_PROCESSOR,
    11621163
    11631164                distributed_boot,
  • branches/reconfiguration/platforms/tsar_generic_iob/tsar_iob_cluster/caba/source/include/tsar_iob_cluster.h

    r961 r963  
    237237                    size_t                             xcu_nb_wti,
    238238                    size_t                             xcu_nb_out,
     239                    size_t                             irq_per_proc,
    239240
    240241                    bool                               distboot,
  • branches/reconfiguration/platforms/tsar_generic_iob/tsar_iob_cluster/caba/source/src/tsar_iob_cluster.cpp

    r961 r963  
    7777        size_t                             xcu_nb_wti,
    7878        size_t                             xcu_nb_out,
     79        size_t                             irq_per_proc,
    7980
    8081        bool                               distboot,
     
    536537        for ( size_t j = 0 ; j < 6 ; j++)
    537538        {
    538             if ( j < 4 ) proc[p]->p_irq[j]       (signal_proc_it[4*p + j]);
    539             else         proc[p]->p_irq[j]       (signal_false);
     539            if ( j < irq_per_proc )
     540            {
     541                proc[p]->p_irq[j]                (signal_proc_it[irq_per_proc*p + j]);
     542            }
     543            else
     544            {
     545                proc[p]->p_irq[j]                (signal_false);
     546            }
    540547        }
    541548    }
Note: See TracChangeset for help on using the changeset viewer.