Changeset 950 for trunk/platforms


Ignore:
Timestamp:
Feb 23, 2015, 3:45:18 PM (10 years ago)
Author:
porquet
Message:

linux_monocluster: define 4 irq lines per cpu (to be coherent with LETI systems)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/platforms/linux_monocluster/top.cpp

    r829 r950  
    141141
    142142#define MAX_FROZEN_CYCLES 500000
     143
     144#define NB_IRQS_PER_CPU 4
    143145
    144146/*
     
    320322            3,              // #input hw irqs
    321323            param.nr_cpus,  // #ipis
    322             param.nr_cpus); // #output irqs
     324            param.nr_cpus * NB_IRQS_PER_CPU); // #output irqs
    323325
    324326    VciMultiTty<vci_param> mtty("mtty", IntTab(0, 3), maptabp, "vcitty0", NULL);
     
    468470    xicu.p_hwi[1](signal_bd_irq);
    469471    xicu.p_hwi[2](signal_memc_irq);
    470     for (size_t i = 0; i < param.nr_cpus; i++)
    471         xicu.p_irq[i](signal_proc_irq[i][0]);
     472    for (size_t i = 0; i < param.nr_cpus; i++) {
     473        xicu.p_irq[i * NB_IRQS_PER_CPU + 0](signal_proc_irq[i][0]);
     474        xicu.p_irq[i * NB_IRQS_PER_CPU + 1](signal_proc_irq[i][1]);
     475        xicu.p_irq[i * NB_IRQS_PER_CPU + 2](signal_proc_irq[i][2]);
     476        xicu.p_irq[i * NB_IRQS_PER_CPU + 3](signal_proc_irq[i][3]);
     477    }
    472478
    473479    mtty.p_clk(signal_clk);
Note: See TracChangeset for help on using the changeset viewer.