Ignore:
Timestamp:
Jul 22, 2015, 1:11:08 PM (9 years ago)
Author:
alain
Message:

Introducing support for the new mechanism to start tasks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_kernel/irq_handler.c

    r547 r648  
    252252    unsigned int x              = cluster_xy >> Y_WIDTH;
    253253    unsigned int y              = cluster_xy & ((1<<Y_WIDTH)-1);
    254     unsigned int lpid           = gpid & ((1<<P_WIDTH)-1);
     254    unsigned int p              = gpid & ((1<<P_WIDTH)-1);
    255255    unsigned int irq_id;
    256256    unsigned int irq_type;
    257257
    258258    // get the highest priority active IRQ index
    259     unsigned int icu_out_index = lpid * IRQ_PER_PROCESSOR;
     259    unsigned int icu_out_index = p * IRQ_PER_PROCESSOR;
    260260
    261261    _xcu_get_index( cluster_xy, icu_out_index, &irq_id, &irq_type );
     
    283283_nolock_printf("\n[DEBUG IRQS] _irq_demux() Processor[%d,%d,%d] enters at cycle %d\n"
    284284               " irq_type = %s / irq_id = %d / isr_type = %s / channel = %d\n",
    285                x , y , lpid , _get_proctime() ,
     285               x , y , p , _get_proctime() ,
    286286               _irq_type_str[irq_type] , irq_id , _isr_type_str[isr_type] , channel );   
    287287#endif
     
    309309                    " - irq_id   = %d\n"
    310310                    " - isr_type = %s\n",
    311                     x, y, lpid, _get_proctime(),
     311                    x, y, p, _get_proctime(),
    312312                    _irq_type_str[irq_type] , irq_id , _isr_type_str[isr_type] );   
    313313            _exit();
     
    327327    unsigned int x          = cluster_xy >> Y_WIDTH;
    328328    unsigned int y          = cluster_xy & ((1<<Y_WIDTH)-1);
    329     unsigned int lpid       = gpid & ((1<<P_WIDTH)-1);
     329    unsigned int p          = gpid & ((1<<P_WIDTH)-1);
    330330
    331331    _printf("\n[GIET WARNING] IRQ handler called but no active IRQ "
    332332            "on processor[%d,%d,%d] at cycle %d\n",
    333             x, y, lpid, _get_proctime() );
     333            x, y, p, _get_proctime() );
    334334}
    335335
Note: See TracChangeset for help on using the changeset viewer.