- Timestamp:
- Sep 21, 2018, 10:25:39 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/boot/tsar_mips32/boot.c
r552 r556 404 404 boot_info->x_max = header->x_size; // [FIXME] 405 405 boot_info->y_max = header->name[5] == 'l' ? header->y_size - 1 : header->y_size; // [FIXME] 406 boot_info->use_mty0 = header->name[5] == 'l' ? true : false;407 406 boot_info->paddr_width = header->paddr_width; 408 407 boot_info->io_cxy = header->io_cxy; -
trunk/boot/tsar_mips32/boot_tty_driver.c
r541 r556 43 43 #endif 44 44 45 #ifdef IS_LETI 46 #define TARGET_CLUSTER 0 47 #else 48 #define TARGET_CLUSTER ((X_IO << Y_WIDTH) + Y_IO) 45 #ifndef TXT_TGT_CLUSTER 46 # error "The TXT_TGT_CLUSTER value should be defined in the 'hard_config.h' file" 49 47 #endif 50 51 48 52 49 ///////////////////////////////////////////////////////////////////////////// … … 57 54 static uint32_t boot_tty_get_register( uint32_t reg ) 58 55 { 59 cxy_t cxy = T ARGET_CLUSTER;56 cxy_t cxy = TXT_TGT_CLUSTER; 60 57 uint32_t * ptr = (uint32_t *)SEG_TXT_BASE + reg; 61 58 … … 72 69 uint32_t val ) 73 70 { 74 cxy_t cxy = T ARGET_CLUSTER;71 cxy_t cxy = TXT_TGT_CLUSTER; 75 72 uint32_t * ptr = (uint32_t *)SEG_TXT_BASE + reg; 76 73 -
trunk/kernel/kern/kernel_init.c
r550 r556 24 24 25 25 #include <kernel_config.h> 26 #include <hard_config.h> // for the USE_TXT_XXX macros 26 27 #include <errno.h> 27 28 #include <hal_kernel_types.h> … … 424 425 425 426 /////////////////////////////// 426 else if ( func == DEV_FUNC_TXT && info->use_mty0== 1 )427 else if ( func == DEV_FUNC_TXT && USE_TXT_MTY == 1 ) 427 428 { 428 429 assert(impl == IMPL_TXT_MTY, … … 592 593 { 593 594 // skip TXT_TX[0] chdev that has already been created & registered 594 if( info->use_mty0== 0 && (func == DEV_FUNC_TXT) && (channel == 0) && (rx == 0) )595 if( USE_TXT_MTY == 0 && (func == DEV_FUNC_TXT) && (channel == 0) && (rx == 0) ) 595 596 { 596 597 continue; … … 598 599 599 600 // skip TXT chdevs because they are initialized in internal_devices_init() 600 if ( info->use_mty0== 1 && func == DEV_FUNC_TXT )601 if ( USE_TXT_MTY == 1 && func == DEV_FUNC_TXT ) 601 602 { 602 603 continue; … … 967 968 if( core_cxy == 0 && core_lid == 0 ) // [MODIF] 968 969 { 969 if( info->use_mty0== 1 ) {970 if( USE_TXT_MTY == 1 ) { 970 971 mtty0_device_init( info ); 971 972 } else { … … 1355 1356 1356 1357 #if (DEBUG_KERNEL_INIT & 1) 1357 if( (core_lid == 0) & (local_cxy == 0))1358 if( (core_lid == 0) /*& (local_cxy == 0)*/ ) 1358 1359 sched_display( 0 ); 1359 1360 #endif -
trunk/tools/arch_info/arch_classes.py
r548 r556 605 605 s += '#define BOOT_CORE_CXY %d\n' % self.boot_cxy 606 606 s += '#define CACHE_LINE_SIZE %d\n' % self.cache_line 607 if (self.name[5] == 'l') :608 s += '#define IS_LETI \n'609 607 s += '#define RESET_SYSTEM_CLK %d\n' % sys_clk 610 608 s += '\n' … … 630 628 s += '#define USE_IOC_RDK %d\n' % use_ioc_rdk 631 629 s += '\n' 630 s += '#define USE_TXT_TTY %d\n' % (self.name[5] != 'l') # use TTY implementation on IOB 631 s += '#define USE_TXT_MTY %d\n' % (self.name[5] == 'l') # use MTY implementation on LETI 632 s += '\n' 632 633 s += '#define FBUF_X_SIZE %d\n' % fbf_arg0 633 634 s += '#define FBUF_Y_SIZE %d\n' % fbf_arg1 … … 637 638 s += '#define ICU_NB_WTI %d\n' % icu_arg2 638 639 s += '#define ICU_NB_OUT %d\n' % icu_arg3 640 s += '\n' 641 if (self.name[5] == 'l') : # If running on LETI 642 s += '#define TXT_TGT_CLUSTER 0\n' 643 else : # Else, running on IOB 644 s += '#define TXT_TGT_CLUSTER ((X_IO << Y_WIDTH) + Y_IO)\n' 639 645 s += '\n' 640 646 -
trunk/tools/arch_info/boot_info.h
r535 r556 114 114 uint32_t x_max; /*! [FIXME] Nb of non-empty cluster in row */ 115 115 uint32_t y_max; /*! [FIXME] Nb of non_empty cluster in col */ 116 uint32_t use_mty0; /*! [FIXME] Use multi_tty on cluster 0 */117 116 uint32_t io_cxy; /*! IO cluster identifier */ 118 117
Note: See TracChangeset
for help on using the changeset viewer.