Changeset 197 for soft/giet_vm
- Timestamp:
- Aug 8, 2012, 12:06:38 PM (12 years ago)
- Location:
- soft/giet_vm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/Makefile
r196 r197 66 66 $(DU) -D $@ > $@.txt 67 67 68 build/sys/%.o: sys/%.c 68 build/sys/%.o: sys/%.c giet_config.h 69 69 $(CC) $(INCLUDE) $(CFLAGS) -c -o $@ $< 70 70 71 build/sys/%.o: sys/%.s 71 build/sys/%.o: sys/%.s giet_config.h 72 72 $(CC) $(INCLUDE) $(CFLAGS) -c -o $@ $< 73 73 … … 77 77 $(DU) -D $@ > $@.txt 78 78 79 build/boot/%.o: boot/%.c 79 build/boot/%.o: boot/%.c giet_config.h 80 80 $(CC) $(INCLUDE) $(CFLAGS) -c -o $@ $< 81 81 82 build/boot/%.o: boot/%.S 82 build/boot/%.o: boot/%.S giet_config.h 83 83 $(CC) $(INCLUDE) $(CFLAGS) -c -o $@ $< 84 84 … … 116 116 117 117 ### libs compilation 118 build/libs/utils.o: libs/utils.c 118 build/libs/utils.o: libs/utils.c giet_config.h 119 119 $(CC) $(CFLAGS) $(INCLUDE) -c -o $@ $< 120 120 121 build/libs/stdio.o: libs/stdio.c 121 build/libs/stdio.o: libs/stdio.c giet_config.h 122 122 $(CC) $(CFLAGS) $(INCLUDE) -c -o $@ $< 123 123 -
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 } -
soft/giet_vm/giet_config.h
r189 r197 12 12 /* Debug parameters */ 13 13 14 #define BOOT_DEBUG_PT 0 /* display page tables initialisation on TTY0 */ 14 #define BOOT_DEBUG_PERI 0 /* display peripherals initialisation on TTY0 */ 15 #define BOOT_DEBUG_PT 1 /* display page tables initialisation on TTY0 */ 15 16 #define BOOT_DEBUG_VOBJS 0 /* display vobjs initialisation on TTY0 */ 16 #define BOOT_DEBUG_SCHED 0 /* display schedulers initialisation on TTY0 */ 17 #define BOOT_DEBUG_PERI 0 /* display peripherals initialisation on TTY0 */ 17 #define BOOT_DEBUG_SCHED 1 /* display schedulers initialisation on TTY0 */ 18 18 19 19 #define GIET_DEBUG_INIT 0 /* display parallel kernel initialisation on TTY0 */ -
soft/giet_vm/memo/Makefile
r188 r197 9 9 INCLUDES = -Iinclude/libelfpp -Iinclude/libelfpp/elfpp -Iinclude/ -I../xml 10 10 memo.x: $(SRCS) $(HDRS) 11 #g++ -Wall -g -DDISTRIBUTED_SCHEDULERS$(SRCS) $(INCLUDES) -o memo.x12 g++ -Wall -g $(SRCS) $(INCLUDES) -o memo.x11 #g++ -Wall -g $(SRCS) $(INCLUDES) -o memo.x 12 g++ -Wall -g -DDISTRIBUTED_SCHEDULERS $(SRCS) $(INCLUDES) -o memo.x 13 13 14 14 debug: $(SRCS) $(HDRS)
Note: See TracChangeset
for help on using the changeset viewer.