Changeset 289 for soft/giet_vm/giet_boot
- Timestamp:
- Feb 4, 2014, 2:16:37 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_boot/boot.c
r276 r289 1169 1169 unsigned int alloc_tim_channel[X_SIZE*Y_SIZE]; // user TIMER allocators 1170 1170 1171 if ( !GIET_MONO_TTY) alloc_tty_channel++;1171 if (NB_TTY_CHANNELS > 1) alloc_tty_channel++; 1172 1172 1173 1173 ///////////////////////////////////////////////////////////////////////// … … 1372 1372 } 1373 1373 ctx_tty = alloc_tty_channel; 1374 if ( !GIET_MONO_TTY) alloc_tty_channel++;1374 if (NB_TTY_CHANNELS > 1) alloc_tty_channel++; 1375 1375 } 1376 1376 // ctx_nic : NIC channel global index provided by the global allocator … … 1561 1561 void boot_mapping_init() 1562 1562 { 1563 // Initializing the FAT descriptor and files descriptor array 1564 if ( _fat_init( IOC_BOOT_PA_MODE ) ) 1565 { 1566 _puts("[BOOT ERROR] Cannot initialize FAT descriptor fom Boot Sector\n"); 1567 _exit(); 1568 } 1569 1570 #if BOOT_DEBUG_MAPPING 1571 _puts("\n[BOOT] FAT initialisation completed at cycle "); 1572 _putd(_get_proctime()); 1573 _puts("\n"); 1574 _fat_print(); 1575 #endif 1563 _ioc_init( 0 ); 1576 1564 1577 1565 int fd_id = _fat_open( IOC_BOOT_PA_MODE, … … 1746 1734 { 1747 1735 unsigned int i; 1748 for( i = seg_filesz ; i < seg_memsz ; i++ ) boot_buffer[i] = 0;1736 for( i = seg_filesz ; i < seg_memsz ; i++ ) boot_buffer[i+seg_offset] = 0; 1749 1737 } 1750 1738 … … 1927 1915 case PERIPH_TYPE_IOC: // vci_block_device component 1928 1916 { 1929 _ioc_init(); 1917 // initialize all channels except channel 0 because it has been 1918 // initialize during mapping_info loading 1919 for (channel_id = 1; channel_id < channels; channel_id++) 1920 { 1921 _ioc_init( channel_id ); 1922 } 1930 1923 #if BOOT_DEBUG_PERI 1931 1924 _puts("- IOC / channels = "); … … 1953 1946 #if BOOT_DEBUG_PERI 1954 1947 _puts("- FBF / channels = "); 1955 _putd(channels);1956 _puts("\n");1957 #endif1958 break;1959 }1960 case PERIPH_TYPE_HBA: // vci_multi_ahci component1961 {1962 for (channel_id = 0; channel_id < channels; channel_id++)1963 {1964 // TODO1965 }1966 #if BOOT_DEBUG_PERI1967 _puts("- HBA / channels = ");1968 1948 _putd(channels); 1969 1949 _puts("\n");
Note: See TracChangeset
for help on using the changeset viewer.