Ignore:
Timestamp:
Jul 18, 2015, 3:00:42 PM (9 years ago)
Author:
alain
Message:

Modify the task activation/desactivation mechanism
to support the _kill_application() and _exec_application() system functions.
The RUN Boolean in task context has been replaced by the NORUN bit-vector.

File:
1 edited

Legend:

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

    r615 r629  
    113113unsigned int   _tty0_boot_mode = 0;
    114114
    115 // Kernel uses distributed locks to protect MMC   
    116 __attribute__((section(".kdata")))
    117 unsigned int   _mmc_boot_mode = 0;
    118 
    119115// Kernel uses sqt_lock to protect command allocator in HBA       
    120116__attribute__((section(".kdata")))
     
    131127// this variable is defined in tty0.c file
    132128extern sqt_lock_t _tty0_sqt_lock;
     129
     130// this variable is allocated in mmc_kernel.c
     131extern unsigned int _mmc_boot_mode;
    133132
    134133////////////////////////////////////////////////////////////////////////////////
     
    167166#endif
    168167        //////  distributed lock for MMC
     168        _mmc_boot_mode = 0;
    169169        _mmc_init_locks();
    170170
     
    293293        // compute ctx_epc
    294294        unsigned int* ptr = (unsigned int*)_get_task_slot(x,y,p,ltid,CTX_EPC_ID);
    295         _set_task_slot(x,y,p,ltid,CTX_EPC_ID,*ptr);
     295        _set_task_slot( x , y , p , ltid , CTX_EPC_ID , *ptr );
    296296
    297297#if GIET_DEBUG_INIT
Note: See TracChangeset for help on using the changeset viewer.