Ignore:
Timestamp:
Sep 17, 2012, 10:47:46 AM (12 years ago)
Author:
karaoui
Message:

New components are now mandotory in the XML description:

The files giet_vsegs.ld and hard_config.h are now autogenerated by the xml2bin tool.

File:
1 edited

Legend:

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

    r207 r215  
    4848unsigned int                    _idle_stack[NB_CLUSTERS*NB_PROCS_MAX*64];
    4949
     50void _sys_exit()
     51{
     52    while(1);
     53}
     54
    5055//////////////////////////////////////////////////////////////////////////////////
    5156// This function is the entry point for the last step of the boot sequence.
     
    127132    unsigned int pti_mask = 0;
    128133
     134    unsigned int isr_switch_channel = 0xFFFFFFFF;
     135
    129136    for ( irq_id = 0 ; irq_id < 32 ; irq_id++ )
    130137    {
     
    136143             hwi_mask = hwi_mask | 0x1<< irq_id;
    137144        }
    138         else if ( (isr == ISR_SWITCH) || (isr == ISR_TIMER) )
     145        else if ( (isr == ISR_SWITCH) )
    139146        {
     147            pti_mask = pti_mask | 0x1<< irq_id;
     148            isr_switch_channel = irq_id;
     149        }
     150        else if ( (isr == ISR_TIMER) )
     151        {
    140152            pti_mask = pti_mask | 0x1<< irq_id;
    141153        }
     
    159171    if ( tasks > 1 )
    160172    {
     173        if(isr_switch_channel == 0xFFFFFFFF)
     174        {
     175            _puts("\n[GIET ERROR] ISR_SWITCH not found on proc ");
     176            _putd( proc_id);
     177            _puts("\n");
     178            _sys_exit();
     179        }
    161180        _timer_start( cluster_id,
    162                       proc_id,
     181                      isr_switch_channel,
    163182                      GIET_TICK_VALUE );
    164183       
Note: See TracChangeset for help on using the changeset viewer.