Changeset 492 for trunk/kernel/devices
- Timestamp:
- Aug 22, 2018, 11:55:48 PM (6 years ago)
- Location:
- trunk/kernel/devices
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/devices/dev_dma.c
r457 r492 69 69 if( error ) 70 70 { 71 assert( false , __FUNCTION__ ,"cannot create server thread" );71 assert( false , "cannot create server thread" ); 72 72 } 73 73 … … 103 103 xptr_t dev_xp = chdev_dir.dma[channel]; 104 104 105 assert( (dev_xp != XPTR_NULL) , __FUNCTION__ ,"undefined DMA chdev descriptor" );105 assert( (dev_xp != XPTR_NULL) , "undefined DMA chdev descriptor" ); 106 106 107 107 // register command in calling thread descriptor -
trunk/kernel/devices/dev_fbf.c
r483 r492 59 59 else 60 60 { 61 assert( false , __FUNCTION__ ,"undefined FBF device implementation" );61 assert( false , "undefined FBF device implementation" ); 62 62 } 63 63 … … 71 71 xptr_t dev_xp = chdev_dir.fbf[0]; 72 72 73 assert( (dev_xp != XPTR_NULL) , __FUNCTION__ ,"undefined FBF chdev descriptor" );73 assert( (dev_xp != XPTR_NULL) , "undefined FBF chdev descriptor" ); 74 74 75 75 // get FBF chdev cluster and local pointer … … 89 89 xptr_t dev_xp = chdev_dir.fbf[0]; 90 90 91 assert( (dev_xp != XPTR_NULL) , __FUNCTION__ ,"undefined FBF chdev descriptor" );91 assert( (dev_xp != XPTR_NULL) , "undefined FBF chdev descriptor" ); 92 92 93 93 // get FBF chdev cluster and local pointer … … 106 106 xptr_t dev_xp = chdev_dir.fbf[0]; 107 107 108 assert( (dev_xp != XPTR_NULL) , __FUNCTION__ ,"undefined FBF chdev descriptor" );108 assert( (dev_xp != XPTR_NULL) , "undefined FBF chdev descriptor" ); 109 109 110 110 // get FBF chdev cluster and local pointer … … 132 132 xptr_t fbf_xp = chdev_dir.fbf[0]; 133 133 134 assert( (fbf_xp != XPTR_NULL) , __FUNCTION__ ,"undefined FBF chdev descriptor" );134 assert( (fbf_xp != XPTR_NULL) , "undefined FBF chdev descriptor" ); 135 135 136 136 // get FBF chdev cluster and local pointer … … 144 144 145 145 // check offset and length versus FBF size 146 assert( ((offset + length) <= (width * height)) , __FUNCTION__ ,146 assert( ((offset + length) <= (width * height)) , 147 147 "offset %d / length %d / width %d / height %d\n", offset, length, width, height ); 148 148 -
trunk/kernel/devices/dev_ioc.c
r457 r492 44 44 xptr_t pic_xp = chdev_dir.pic; 45 45 46 assert( (pic_xp != XPTR_NULL) , __FUNCTION__ ,"PIC not initialised before IOC" );46 assert( (pic_xp != XPTR_NULL) , "PIC not initialised before IOC" ); 47 47 48 48 // get implementation and channel from chdev descriptor … … 75 75 lid ); 76 76 77 assert( (error == 0) , __FUNCTION__ ,"cannot create server thread" );77 assert( (error == 0) , "cannot create server thread" ); 78 78 79 79 // set "server" field in chdev descriptor … … 111 111 xptr_t dev_xp = chdev_dir.ioc[0]; 112 112 113 assert( (dev_xp != XPTR_NULL) , __FUNCTION__ ,"undefined IOC chdev descriptor" );113 assert( (dev_xp != XPTR_NULL) , "undefined IOC chdev descriptor" ); 114 114 115 115 // register command in calling thread descriptor … … 199 199 xptr_t ioc_xp = chdev_dir.ioc[0]; 200 200 201 assert( (ioc_xp != XPTR_NULL) , __FUNCTION__ ,"undefined IOC chdev descriptor" );201 assert( (ioc_xp != XPTR_NULL) , "undefined IOC chdev descriptor" ); 202 202 203 203 // register command in calling thread descriptor -
trunk/kernel/devices/dev_mmc.c
r457 r492 67 67 xptr_t dev_xp = this->mmc_cmd.dev_xp; 68 68 69 assert( (dev_xp != XPTR_NULL) , __FUNCTION__ ,"target MMC device undefined" );69 assert( (dev_xp != XPTR_NULL) , "target MMC device undefined" ); 70 70 71 71 // get MMC device cluster identifier & local pointer … … 110 110 void * buf_ptr = GET_PTR( buf_xp ); 111 111 112 assert( (((intptr_t)buf_ptr & (CONFIG_CACHE_LINE_SIZE -1)) == 0) , __FUNCTION__ ,112 assert( (((intptr_t)buf_ptr & (CONFIG_CACHE_LINE_SIZE -1)) == 0) , 113 113 "buffer not aligned on cache line" ); 114 114 … … 151 151 void * buf_ptr = GET_PTR( buf_xp ); 152 152 153 assert( (((intptr_t)buf_ptr & (CONFIG_CACHE_LINE_SIZE -1)) == 0) , __FUNCTION__ ,153 assert( (((intptr_t)buf_ptr & (CONFIG_CACHE_LINE_SIZE -1)) == 0) , 154 154 "buffer not aligned on cache line" ); 155 155 -
trunk/kernel/devices/dev_nic.c
r457 r492 43 43 xptr_t pic_xp = chdev_dir.pic; 44 44 45 assert( (pic_xp != XPTR_NULL) , __FUNCTION__ ,"ICU not initialised before NIC" );45 assert( (pic_xp != XPTR_NULL) , "ICU not initialised before NIC" ); 46 46 47 47 // get "impl" , "channel" , "is_rx" fields from chdev descriptor … … 74 74 lid ); 75 75 76 assert( (error == 0) , __FUNCTION__ ,"cannot create server thread" );76 assert( (error == 0) , "cannot create server thread" ); 77 77 78 78 // set "server" field in chdev descriptor … … 112 112 chdev_t * dev_ptr = (chdev_t *)GET_PTR( dev_xp ); 113 113 114 assert( (dev_xp != XPTR_NULL) , __FUNCTION__ ,"undefined NIC chdev descriptor" );115 116 assert( (dev_cxy == local_cxy) , __FUNCTION__ ," chdev must be local" );114 assert( (dev_xp != XPTR_NULL) , "undefined NIC chdev descriptor" ); 115 116 assert( (dev_cxy == local_cxy) , " chdev must be local" ); 117 117 118 118 // initialize command in thread descriptor … … 190 190 chdev_t * dev_ptr = (chdev_t *)GET_PTR( dev_xp ); 191 191 192 assert ( (dev_xp != XPTR_NULL) , __FUNCTION__, "undefined NIC chdev descriptor" );193 194 assert( (dev_cxy == local_cxy) , __FUNCTION__ ," chdev must be local" );192 assert( (dev_xp != XPTR_NULL) , "undefined NIC chdev descriptor" ); 193 194 assert( (dev_cxy == local_cxy) , " chdev must be local" ); 195 195 196 196 // initialize command in thread descriptor -
trunk/kernel/devices/dev_txt.c
r457 r492 69 69 bool_t is_rx = txt->is_rx; 70 70 71 assert( (pic_xp != XPTR_NULL) || (channel == 0) , __FUNCTION__ ,71 assert( (pic_xp != XPTR_NULL) || (channel == 0) , 72 72 "PIC not initialised before TXT" ); 73 73 … … 107 107 lid ); 108 108 109 assert( (error == 0) , __FUNCTION__ ,"cannot create server thread" );109 assert( (error == 0) , "cannot create server thread" ); 110 110 111 111 // set "server" field in chdev descriptor … … 132 132 133 133 // check channel argument 134 assert( (channel < CONFIG_MAX_TXT_CHANNELS) , __FUNCTION__ ,"illegal channel index" );134 assert( (channel < CONFIG_MAX_TXT_CHANNELS) , "illegal channel index" ); 135 135 136 136 // get extended pointer on remote TXT chdev descriptor … … 138 138 else dev_xp = chdev_dir.txt_rx[channel]; 139 139 140 assert( (dev_xp != XPTR_NULL) , __FUNCTION__ ,"undefined TXT chdev descriptor" );140 assert( (dev_xp != XPTR_NULL) , "undefined TXT chdev descriptor" ); 141 141 142 142 // register command in calling thread descriptor … … 221 221 xptr_t dev_xp = chdev_dir.txt_tx[0]; 222 222 223 assert( (dev_xp != XPTR_NULL) , __FUNCTION__ ,223 assert( (dev_xp != XPTR_NULL) , 224 224 "undefined TXT0 chdev descriptor" ); 225 225
Note: See TracChangeset
for help on using the changeset viewer.