Ignore:
Timestamp:
Aug 7, 2015, 5:42:06 PM (9 years ago)
Author:
guerin
Message:

kernel: defer task kill to _ctx_switch()

Introduce SIG slot in task context.
Add release functions for tty, tim and nic in sys_handler.
Process signals in _ctx_switch().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_kernel/ctx_handler.h

    r648 r695  
    3434// ctx[35]<- BVAR  |ctx[43]<- CMA_TX |ctx[51]<- COPROC |ctx[59]<- ***
    3535// ctx[36]<- PTAB  |ctx[44]<- NIC_RX |ctx[52]<- ENTRY  |ctx[60]<- ***
    36 // ctx[37]<- LTID  |ctx[45]<- NIC_TX |ctx[53]<- ***    |ctx[61]<- ***
     36// ctx[37]<- LTID  |ctx[45]<- NIC_TX |ctx[53]<- SIG    |ctx[61]<- ***
    3737// ctx[38]<- VSID  |ctx[46]<- TIM    |ctx[54]<- ***    |ctx[62]<- ***
    3838// ctx[39]<- PTPR  |ctx[47]<- HBA    |ctx[55]<- ***    |ctx[63]<- ***
     
    7474#define CTX_COPROC_ID    51    // cluster_xy : coprocessor coordinates
    7575#define CTX_ENTRY_ID     52    // Virtual address of task entry point
     76#define CTX_SIG_ID       53    // bit-vector : pending signals for task
    7677
    7778/////////////////////////////////////////////////////////////////////////////////
     
    8283#define NORUN_MASK_IOC        0x00000002   // Task blocked on IOC transfer
    8384#define NORUN_MASK_COPROC     0x00000004   // Task blocked on COPROC transfer
     85
     86/////////////////////////////////////////////////////////////////////////////////
     87//    Definition of the SIG bit-vector masks
     88/////////////////////////////////////////////////////////////////////////////////
     89
     90#define SIG_MASK_KILL         0x00000001   // Task will be killed at next tick
    8491
    8592/////////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset for help on using the changeset viewer.