Changeset 467 for soft/giet_vm/giet_kernel/sys_handler.c
- Timestamp:
- Dec 12, 2014, 5:00:43 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_kernel/sys_handler.c
r459 r467 255 255 256 256 _it_disable( save_sr_ptr ); 257 _s imple_lock_acquire( &_tty_tx_lock[channel] );257 _sbt_lock_acquire( &_tty_tx_lock[channel] ); 258 258 return 0; 259 259 } … … 267 267 if( channel >= NB_TTY_CHANNELS ) return -1; 268 268 269 _s imple_lock_release( &_tty_tx_lock[channel] );269 _sbt_lock_release( &_tty_tx_lock[channel] ); 270 270 _it_restore( save_sr_ptr ); 271 271 return 0; … … 501 501 if ( is_rx ) 502 502 { 503 _ lock_init( &_nic_rx_lock[nic_channel] );503 _spin_lock_init( &_nic_rx_lock[nic_channel] ); 504 504 _nic_rx_chbuf[nic_channel].index = 0; 505 505 for( index = 0 ; index < GIET_NIC_NBUFS ; index++ ) … … 510 510 else 511 511 { 512 _ lock_init( &_nic_tx_lock[nic_channel] );512 _spin_lock_init( &_nic_tx_lock[nic_channel] ); 513 513 _nic_tx_chbuf[nic_channel].index = 0; 514 514 for( index = 0 ; index < GIET_NIC_NBUFS ; index++ ) … … 642 642 643 643 // get the lock protecting the chbuf 644 _ lock_acquire( lock );644 _spin_lock_acquire( lock ); 645 645 646 646 // polling on the kernel chbuf status … … 712 712 713 713 // release the lock protecting the chbuf 714 _ lock_release( lock );714 _spin_lock_release( lock ); 715 715 716 716 #if GIET_DEBUG_NIC
Note: See TracChangeset
for help on using the changeset viewer.