Changeset 333 for soft/giet_vm/giet_drivers/tty_driver.c
- Timestamp:
- Jun 19, 2014, 1:31:45 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_drivers/tty_driver.c
r320 r333 152 152 153 153 ////////////////////////////////////////////////////////////////////////////// 154 // This function try to take the hardwiredlock protecting154 // This function try to take the lock protecting 155 155 // exclusive access to TTY terminal identified by the "channel" argument. 156 156 // It enters a critical section before taking the lock, and save the SR value … … 162 162 { 163 163 if( channel >= NB_TTY_CHANNELS ) _exit(); 164 165 164 _it_disable( save_sr_ptr ); 166 167 // while ( _tty_get_register( channel, TTY_CONFIG ) ); // busy waiting168 169 165 _get_lock( &_tty_lock[channel] ); 170 166 } … … 180 176 { 181 177 if( channel >= NB_TTY_CHANNELS ) _exit(); 182 183 // _tty_set_register( channel, TTY_CONFIG, 0 );184 185 178 _release_lock( &_tty_lock[channel] ); 186 187 179 _it_restore( save_sr_ptr ); 188 180 }
Note: See TracChangeset
for help on using the changeset viewer.