Ignore:
Timestamp:
Jun 29, 2014, 12:53:25 PM (10 years ago)
Author:
alain
Message:

Introducing two modifications regarding the locks protecting
exclusive access to BDV and TTY peripherals channels:

  • use the giet_lock_t type to have only one lock per cache line.
  • store these locks in the seg_kernel_data or in seg_kernel_uncdata, depending on the GIET_NO HARD_CC configuration parameter, to have cacheable locks when it is possible.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_drivers/bdv_driver.h

    r295 r350  
    1010#define _GIET_BDV_DRIVER_H_
    1111
     12#include "utils.h"
     13
    1214///////////////////////////////////////////////////////////////////////////////////
    1315// BDV global variables
    1416///////////////////////////////////////////////////////////////////////////////////
    1517
    16 extern unsigned int          _bdv_lock;    // BDV is a shared ressource
     18extern giet_lock_t           _bdv_lock;    // BDV is a shared ressource
    1719extern volatile unsigned int _bdv_status;  // required for IRQ signaling
    1820extern volatile unsigned int _bdv_gtid;    // descheduled task id = gpid<<16 + ltid
Note: See TracChangeset for help on using the changeset viewer.