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/tty_driver.h

    r295 r350  
    88#ifndef _GIET_TTY_DRIVERS_H_
    99#define _GIET_TTY_DRIVERS_H_
     10
     11#include "utils.h"
    1012
    1113///////////////////////////////////////////////////////////////////////////////////
     
    2729///////////////////////////////////////////////////////////////////////////////////
    2830
    29 extern volatile unsigned char _tty_get_buf[];
     31extern volatile unsigned int _tty_rx_buf[];
    3032
    31 extern volatile unsigned char _tty_get_full[];
     33extern volatile unsigned int _tty_rx_full[];
     34
     35extern giet_lock_t _tty_lock[];
    3236
    3337//////////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset for help on using the changeset viewer.