Ignore:
Timestamp:
Sep 18, 2012, 6:38:49 PM (12 years ago)
Author:
karaoui
Message:
  • updating irq_handler.c/drivers.c to support the nex affectations of timers
  • When using an xicu the number of timer is set to 32
File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/sys/kernel_init.c

    r215 r216  
    124124    }
    125125 
     126    unsigned int isr_switch_channel = 0xFFFFFFFF;
     127
    126128    // step 3 : compute and set ICU masks
    127129    //          there is at most 32 interrupts per processor
     
    131133    unsigned int hwi_mask = 0;
    132134    unsigned int pti_mask = 0;
    133 
    134     unsigned int isr_switch_channel = 0xFFFFFFFF;
    135135
    136136    for ( irq_id = 0 ; irq_id < 32 ; irq_id++ )
     
    173173        if(isr_switch_channel == 0xFFFFFFFF)
    174174        {
     175            _get_lock(&_tty_put_lock);
    175176            _puts("\n[GIET ERROR] ISR_SWITCH not found on proc ");
    176177            _putd( proc_id);
    177178            _puts("\n");
     179            _release_lock(&_tty_put_lock);
    178180            _sys_exit();
    179181        }
    180         _timer_start( cluster_id,
    181                       isr_switch_channel,
    182                       GIET_TICK_VALUE );
     182
     183        if(_timer_start( cluster_id, isr_switch_channel, GIET_TICK_VALUE ))
     184        {
     185            _get_lock(&_tty_put_lock);
     186            _puts("\n[GIET ERROR] ISR_SWITCH init error for proc ");
     187            _putd( proc_id);
     188            _puts("\n");
     189            _release_lock(&_tty_put_lock);
     190            _sys_exit();
     191        }
    183192       
    184193#if GIET_DEBUG_INIT
Note: See TracChangeset for help on using the changeset viewer.