Changeset 407 for trunk/kernel/devices/dev_ioc.c
- Timestamp:
- Nov 7, 2017, 3:08:12 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/devices/dev_ioc.c
r406 r407 51 51 52 52 // set chdev name 53 snprintf( ioc->name , 16 , "ioc _%d" , channel );53 snprintf( ioc->name , 16 , "ioc%d" , channel ); 54 54 55 55 // call driver init function … … 90 90 // It builds and registers the command in the calling thread descriptor. 91 91 // Then, it registers the calling thead in chdev waiting queue. 92 // Finally it blocks on the THREAD_BLOCKED_ DEVcondition and deschedule.92 // Finally it blocks on the THREAD_BLOCKED_IO condition and deschedule. 93 93 ////////////////////////////////////i///////////////////////////////////////////// 94 94 static error_t dev_ioc_access( uint32_t cmd_type, … … 99 99 thread_t * this = CURRENT_THREAD; // pointer on client thread 100 100 101 ioc_dmsg("\n[D MSG] %s : thread %x in process %x"101 ioc_dmsg("\n[DBG] %s : thread %x in process %x" 102 102 " for lba = %x / buffer = %x / at cycle %d\n", 103 103 __FUNCTION__ , this->trdid , this->process->pid , … … 126 126 // block client thread on THREAD_BLOCKED_IO and deschedule. 127 127 // it is re-activated by the ISR signaling IO operation completion. 128 chdev_register_command( dev_xp , this);129 130 ioc_dmsg("\n[D MSG] in %s : thread %x in process %x"128 chdev_register_command( dev_xp ); 129 130 ioc_dmsg("\n[DBG] in %s : thread %x in process %x" 131 131 " completes / error = %d / at cycle %d\n", 132 132 __FUNCTION__ , this->trdid , this->process->pid , … … 162 162 thread_t * this = CURRENT_THREAD; 163 163 164 ioc_dmsg("\n[D MSG] %s : core[%x,%d] enter for %d blocks / lba = %x / cycle %d\n",164 ioc_dmsg("\n[DBG] %s : core[%x,%d] enter for %d blocks / lba = %x / cycle %d\n", 165 165 __FUNCTION__ , local_cxy , this->core->lid , count , lba , hal_time_stamp() ); 166 166 … … 199 199 dev_pic_enable_irq( lid , ioc_xp ); 200 200 201 ioc_dmsg("\n[D MSG] %s : core[%x,%d] exit / error = %d / cycle %d\n",201 ioc_dmsg("\n[DBG] %s : core[%x,%d] exit / error = %d / cycle %d\n", 202 202 __FUNCTION__ , local_cxy , this->core->lid , this->ioc_cmd.error , hal_time_stamp() ); 203 203
Note: See TracChangeset
for help on using the changeset viewer.