Changeset 203 for soft/giet_vm/boot/boot_init.c
- Timestamp:
- Aug 13, 2012, 10:52:25 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/boot/boot_init.c
r200 r203 800 800 } 801 801 802 // checking Rnumber of clusters802 // checking number of clusters 803 803 if ( header->clusters != NB_CLUSTERS ) 804 804 { … … 820 820 } 821 821 822 // checking har ware822 // checking hardware 823 823 unsigned int periph_id; 824 824 unsigned int cluster_id; … … 851 851 boot_exit(); 852 852 } 853 if ( periph[periph_id].channels >NB_TTYS )854 { 855 boot_puts("\n[BOOT ERROR] Too much TTY terminalsin cluster ");853 if ( periph[periph_id].channels != NB_TTYS ) 854 { 855 boot_puts("\n[BOOT ERROR] Wrong NB_TTYS in cluster "); 856 856 boot_putw( cluster_id ); 857 857 boot_puts(" : ttys = "); … … 870 870 boot_exit(); 871 871 } 872 if ( periph[periph_id].channels >NB_NICS )873 { 874 boot_puts("\n[BOOT ERROR] Too much NIC channelsin cluster ");872 if ( periph[periph_id].channels != NB_NICS ) 873 { 874 boot_puts("\n[BOOT ERROR] Wrong NB_NICS in cluster "); 875 875 boot_putw( cluster_id ); 876 876 boot_puts(" : nics = "); … … 884 884 if ( periph[periph_id].type == PERIPH_TYPE_TIM ) 885 885 { 886 if ( periph[periph_id].channels > NB_TIMERS_MAX)886 if ( periph[periph_id].channels != (NB_PROCS_MAX + NB_TIMERS_MAX) ) 887 887 { 888 888 boot_puts("\n[BOOT ERROR] Too much user timers in cluster "); … … 897 897 if ( periph[periph_id].type == PERIPH_TYPE_DMA ) 898 898 { 899 if ( periph[periph_id].channels >NB_DMAS_MAX )899 if ( periph[periph_id].channels != NB_DMAS_MAX ) 900 900 { 901 901 boot_puts("\n[BOOT ERROR] Too much DMA channels in cluster "); … … 1198 1198 //////////////////////////////////////////////////////////////////////////////// 1199 1199 // This function intializes the periherals and coprocessors, as specified 1200 // tsuch as the IOB component 1201 // (I/O bridge, containing the IOMMU, the IOC (external disk controller), 1202 // the NIC (external network controller), the FBDMA (frame buffer controller), 1200 // in the mapping_info file. 1203 1201 //////////////////////////////////////////////////////////////////////////////// 1204 1202 void boot_peripherals_init() … … 1306 1304 1307 1305 } // end for periphs 1308 1306 /* 1309 1307 for ( coproc_id = cluster[cluster_id].coproc_offset ; 1310 1308 coproc_id < cluster[cluster_id].coproc_offset + cluster[cluster_id].coprocs ; … … 1358 1356 } 1359 1357 } // end for coprocs 1360 1358 */ 1361 1359 } // end for clusters 1362 1360 } // end boot_peripherals_init()
Note: See TracChangeset
for help on using the changeset viewer.