Changeset 197 for soft/giet_vm/boot/boot_init.c
- Timestamp:
- Aug 8, 2012, 12:06:38 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/boot/boot_init.c
r189 r197 835 835 } 836 836 837 if ( header->clusters != NB_CLUSTERS )838 {839 boot_puts("\n[BOOT ERROR] Incoherent NB_CLUSTERS");840 boot_puts("\n - In giet_config, value = ");841 boot_putw ( NB_CLUSTERS );842 boot_puts("\n - In mapping_info, value = ");843 boot_putw ( header->clusters );844 boot_puts("\n");845 boot_exit();846 }847 848 849 850 837 // checking number of virtual spaces 851 838 if ( header->vspaces > GIET_NB_VSPACE_MAX ) … … 1375 1362 boot_puts("\n"); 1376 1363 #endif 1364 // initialise the "tasks" variable in scheduler 1365 boot_scheduler_set_tasks( proc_id , 0 ); 1366 1377 1367 // initialise the interrupt_vector with ISR_DEFAULT 1378 1368 unsigned int slot; … … 1424 1414 boot_set_mmu_ptpr( (unsigned int)boot_ptabs_paddr[vspace_id] >> 13 ); 1425 1415 1426 // loop on the tasks (task_id is the global index)1416 // loop on the tasks in vspace (task_id is the global index) 1427 1417 for ( task_id = vspace[vspace_id].task_offset ; 1428 1418 task_id < (vspace[vspace_id].task_offset + vspace[vspace_id].tasks) ; … … 1435 1425 unsigned int sr = 0x0000FF13; 1436 1426 1437 // ptpr : page table physical base address (shifted by 13 bit s for ptpr)1427 // ptpr : page table physical base address (shifted by 13 bit) 1438 1428 unsigned int ptpr = (unsigned int)boot_ptabs_paddr[vspace_id] >> 13; 1439 1429 … … 1441 1431 unsigned int ptab = (unsigned int)boot_ptabs_vaddr[vspace_id]; 1442 1432 1443 // tty : terminal global index 1433 // tty : terminal global index provided by a global allocator 1444 1434 unsigned int tty = 0xFFFFFFFF; 1445 1435 if ( task[task_id].use_tty ) … … 1458 1448 } 1459 1449 1460 // nic : NIC channel global index 1450 // nic : NIC channel global index provided by a global allocator 1461 1451 unsigned int nic = 0xFFFFFFFF; 1462 1452 if ( task[task_id].use_nic ) … … 1475 1465 } 1476 1466 1477 // timer : user TIMER local index1467 // timer : user TIMER global index provided by a cluster allocator 1478 1468 unsigned int timer = 0xFFFFFFFF; 1479 1469 if ( task[task_id].use_timer ) … … 1493 1483 } 1494 1484 1495 // fbdma : DMA local index1485 // fbdma : DMA global index provided by a cluster allocator 1496 1486 unsigned int fbdma = 0xFFFFFFFF; 1497 1487 if ( task[task_id].use_fbdma ) … … 1538 1528 if ( ltid >= 15 ) 1539 1529 { 1540 boot_puts("\n[BOOT ERROR] : too much tasks allocated to processor "); 1530 boot_puts("\n[BOOT ERROR] : "); 1531 boot_putw( ltid ); 1532 boot_puts(" tasks allocated to processor "); 1541 1533 boot_putw( gpid ); 1542 boot_puts(" \n");1534 boot_puts(" / max is 15\n"); 1543 1535 boot_exit(); 1544 1536 }
Note: See TracChangeset
for help on using the changeset viewer.