Changeset 14 for trunk/kernel/devices/dev_txt.c
- Timestamp:
- May 3, 2017, 1:23:24 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/devices/dev_txt.c
r3 r14 158 158 uint32_t count ) 159 159 { 160 uint32_t save_sr; 161 160 162 // get pointer on calling thread 161 163 thread_t * this = CURRENT_THREAD; … … 175 177 dev_cmd_t * cmd = (dev_cmd_t *)hal_remote_lpt( XPTR( dev_cxy , &dev_ptr->cmd ) ); 176 178 177 // call directly driver command after taking chdev lock 178 remote_spinlock_lock( XPTR( dev_cxy , &dev_ptr->wait_lock ) ); 179 // call directly driver command 179 180 cmd( XPTR( local_cxy , this ) ); 180 remote_spinlock_unlock( XPTR( dev_cxy , &dev_ptr->wait_lock ) );181 181 182 182 // return I/O operation status from calling thread descriptor
Note: See TracChangeset
for help on using the changeset viewer.