Changeset 469
- Timestamp:
- Dec 12, 2014, 5:09:37 PM (10 years ago)
- Location:
- soft/giet_vm/giet_drivers
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_drivers/bdv_driver.c
r456 r469 97 97 98 98 // get the lock protecting BDV 99 _ lock_acquire( &_bdv_lock );99 _spin_lock_acquire( &_bdv_lock ); 100 100 101 101 #if GIET_DEBUG_IOC_DRIVER … … 159 159 160 160 // release lock 161 _ lock_release( &_bdv_lock );161 _spin_lock_release( &_bdv_lock ); 162 162 } 163 163 // in USER or KERNEL mode, we deschedule the task. … … 220 220 // reset _bdv_status and release lock 221 221 _bdv_status = BLOCK_DEVICE_IDLE; 222 _ lock_release( &_bdv_lock );222 _spin_lock_release( &_bdv_lock ); 223 223 } 224 224 -
soft/giet_vm/giet_drivers/tty_driver.c
r456 r469 17 17 # error: You must define SEG_TTY_BASE in the hard_config.h file 18 18 #endif 19 20 #if !defined(NB_TTY_CHANNELS)21 # error: You must define NB_TTY_CHANNELS in the hard_config.h file22 #endif23 24 #if (NB_TTY_CHANNELS == 0)25 # error: The NB_TTY_CHANNELS in the hard_config.h file cannot be 026 #endif27 28 ////////////////////////////////////////////////////////////////////////////////////29 // global variables30 ////////////////////////////////////////////////////////////////////////////////////31 32 simple_lock_t _tty_tx_lock[NB_TTY_CHANNELS] __attribute__((aligned(64)));33 34 unsigned int _tty_rx_buf[NB_TTY_CHANNELS];35 unsigned int _tty_rx_full[NB_TTY_CHANNELS];36 19 37 20 //////////////////////////////////////////////////////////////////////////////////// -
soft/giet_vm/giet_drivers/tty_driver.h
r456 r469 24 24 #define _GIET_TTY_DRIVERS_H_ 25 25 26 #include "hard_config.h" 26 27 #include "locks.h" 27 28 … … 41 42 42 43 //////////////////////////////////////////////////////////////////////////////////// 43 // global variables 44 // global variables 45 // These variables must be defined both in boot code and in kernel_init code. 44 46 //////////////////////////////////////////////////////////////////////////////////// 45 47 46 extern s imple_lock_t _tty_tx_lock[];48 extern sbt_lock_t _tty_tx_lock[NB_TTY_CHANNELS]; 47 49 48 extern unsigned int _tty_rx_buf[ ];49 extern unsigned int _tty_rx_full[ ];50 extern unsigned int _tty_rx_buf[NB_TTY_CHANNELS]; 51 extern unsigned int _tty_rx_full[NB_TTY_CHANNELS]; 50 52 51 53 //////////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset
for help on using the changeset viewer.