Changeset 279 for trunk/kernel/devices/dev_txt.c
- Timestamp:
- Jul 27, 2017, 12:23:29 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/devices/dev_txt.c
r255 r279 112 112 113 113 // register command in calling thread descriptor 114 this-> command.txt.dev_xp = dev_xp;115 this-> command.txt.type = type;116 this-> command.txt.buf_xp = XPTR( local_cxy , buffer );117 this-> command.txt.count = count;114 this->txt_cmd.dev_xp = dev_xp; 115 this->txt_cmd.type = type; 116 this->txt_cmd.buf_xp = XPTR( local_cxy , buffer ); 117 this->txt_cmd.count = count; 118 118 119 119 // register client thread in waiting queue, activate server thread … … 123 123 124 124 txt_dmsg("\n[INFO] in %s : thread %x in process %x completes / error = %d\n", 125 __FUNCTION__ , this->trdid , this->process->pid , this-> command.txt.error );125 __FUNCTION__ , this->trdid , this->process->pid , this->txt_cmd.error ); 126 126 127 127 // return I/O operation status from calling thread descriptor 128 return this-> command.txt.error;128 return this->txt_cmd.error; 129 129 } 130 130 … … 157 157 assert( (dev_xp != XPTR_NULL) , __FUNCTION__ , "undefined TXT0 chdev descriptor" ); 158 158 159 // register command in calling thread 160 this-> command.txt.dev_xp = dev_xp;161 this-> command.txt.type = TXT_SYNC_WRITE;162 this-> command.txt.buf_xp = XPTR( local_cxy , buffer );163 this-> command.txt.count = count;159 // register command in calling thread descriptor 160 this->txt_cmd.dev_xp = dev_xp; 161 this->txt_cmd.type = TXT_SYNC_WRITE; 162 this->txt_cmd.buf_xp = XPTR( local_cxy , buffer ); 163 this->txt_cmd.count = count; 164 164 165 165 // get driver command function … … 168 168 dev_cmd_t * cmd = (dev_cmd_t *)hal_remote_lpt( XPTR( dev_cxy , &dev_ptr->cmd ) ); 169 169 170 // call d irectly driver command170 // call driver function 171 171 cmd( XPTR( local_cxy , this ) ); 172 172 173 173 // return I/O operation status from calling thread descriptor 174 return this-> command.txt.error;174 return this->txt_cmd.error; 175 175 } 176 176
Note: See TracChangeset
for help on using the changeset viewer.