Changeset 610 for trunk/kernel/fs/devfs.c
- Timestamp:
- Dec 27, 2018, 7:38:58 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/fs/devfs.c
r602 r610 93 93 xptr_t unused_xp; // required by vfs_add_child_in_parent() 94 94 95 // create sDEVFS "dev" inode in cluster 095 // create DEVFS "dev" inode in cluster 0 96 96 error = vfs_add_child_in_parent( 0, // cxy 97 97 INODE_TYPE_DIR, … … 102 102 devfs_dev_inode_xp ); 103 103 104 assert( (error == 0) , "cannot create <dev>\n" ); 104 // check success 105 assert( (error == 0) , "cannot create <dev>\n" ); 105 106 106 107 #if DEBUG_DEVFS_INIT … … 149 150 // create "internal" directory 150 151 snprintf( node_name , 16 , "internal_%x" , local_cxy ); 152 151 153 vfs_add_child_in_parent( local_cxy, 152 154 INODE_TYPE_DIR, … … 169 171 { 170 172 chdev_ptr = GET_PTR( chdev_xp ); 173 chdev_cxy = GET_CXY( chdev_xp ); 174 175 assert( (chdev_cxy == local_cxy ), 176 "illegal MMC chdev_xp in cluster %x\n", local_cxy ); 177 171 178 vfs_add_child_in_parent( local_cxy, 172 179 INODE_TYPE_DEV, … … 198 205 { 199 206 chdev_ptr = GET_PTR( chdev_xp ); 207 chdev_cxy = GET_CXY( chdev_xp ); 208 209 assert( (chdev_cxy == local_cxy ), 210 "illegal DMA[%d] chdev_xp in cluster %x\n", channel, local_cxy ); 211 200 212 vfs_add_child_in_parent( local_cxy, 201 213 INODE_TYPE_DEV, … … 226 238 chdev_cxy = GET_CXY( chdev_xp ); 227 239 chdev_ptr = GET_PTR( chdev_xp ); 240 228 241 if( chdev_cxy == local_cxy ) 229 242 { … … 256 269 chdev_cxy = GET_CXY( chdev_xp ); 257 270 chdev_ptr = GET_PTR( chdev_xp ); 271 258 272 if( chdev_cxy == local_cxy ) 259 273 { … … 288 302 chdev_cxy = GET_CXY( chdev_xp ); 289 303 chdev_ptr = GET_PTR( chdev_xp ); 304 290 305 if( chdev_cxy == local_cxy ) 291 306 { … … 321 336 chdev_cxy = GET_CXY( chdev_xp ); 322 337 chdev_ptr = GET_PTR( chdev_xp ); 338 323 339 if( chdev_cxy == local_cxy ) 324 340 { … … 354 370 chdev_cxy = GET_CXY( chdev_xp ); 355 371 chdev_ptr = GET_PTR( chdev_xp ); 372 356 373 if( chdev_cxy == local_cxy ) 357 374 { … … 387 404 chdev_cxy = GET_CXY( chdev_xp ); 388 405 chdev_ptr = GET_PTR( chdev_xp ); 406 389 407 if( chdev_cxy == local_cxy ) 390 408 { … … 419 437 { 420 438 chdev_cxy = GET_CXY( chdev_xp ); 421 chdev_ptr = (chdev_t *)GET_PTR( chdev_xp ); 439 chdev_ptr = GET_PTR( chdev_xp ); 440 422 441 if( chdev_cxy == local_cxy ) 423 442 { … … 447 466 chdev_cxy = GET_CXY( chdev_xp ); 448 467 chdev_ptr = GET_PTR( chdev_xp ); 468 449 469 if( chdev_cxy == local_cxy ) 450 470 {
Note: See TracChangeset
for help on using the changeset viewer.