Changeset 633 for trunk/kernel/kern/kernel_init.c
- Timestamp:
- May 28, 2019, 6:10:15 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/kernel_init.c
r632 r633 277 277 uint32_t x; // X cluster coordinate 278 278 uint32_t y; // Y cluster coordinate 279 uint32_t channels; // number of channels280 279 281 280 // get number of peripherals and base of devices array from boot_info … … 289 288 func = FUNC_FROM_TYPE( dev_tbl[i].type ); 290 289 impl = IMPL_FROM_TYPE( dev_tbl[i].type ); 291 channels = dev_tbl[i].channels;292 290 293 291 if (func == DEV_FUNC_TXT ) … … 587 585 // initialize the replicated chdev_dir[x][y] structures 588 586 // defining the extended pointers on chdev descriptors 589 xptr_t * entry ;587 xptr_t * entry = NULL; 590 588 591 589 if(func==DEV_FUNC_IOB ) entry = &chdev_dir.iob; … … 603 601 cxy_t cxy = HAL_CXY_FROM_XY( x , y ); 604 602 605 if( cluster_is_active( cxy ) )603 if( cluster_is_active( cxy ) && ( entry != NULL ) ) 606 604 { 607 605 hal_remote_s64( XPTR( cxy , entry ),
Note: See TracChangeset
for help on using the changeset viewer.