Changeset 240 for soft/giet_vm/boot
- Timestamp:
- Jun 3, 2013, 5:28:47 PM (12 years ago)
- Location:
- soft/giet_vm/boot
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/boot/boot_init.c
r238 r240 1521 1521 boot_get_sched_vaddr( cluster_id, &sched_vbase, &sched_length ); 1522 1522 1523 // each processor scheduler requires 1Kbytes1524 if ( sched_length < (nprocs<<1 0) )1523 // each processor scheduler requires 4 Kbytes 1524 if ( sched_length < (nprocs<<12) ) 1525 1525 { 1526 1526 boot_puts("\n[BOOT ERROR] Schedulers segment too small in cluster "); … … 1536 1536 // set the schedulers pointers array 1537 1537 boot_schedulers[cluster_id * NB_PROCS_MAX + lpid] = 1538 (static_scheduler_t*)( sched_vbase + (lpid<<1 0) );1538 (static_scheduler_t*)( sched_vbase + (lpid<<12) ); 1539 1539 1540 1540 #if BOOT_DEBUG_SCHED … … 1542 1542 boot_putd(lpid); 1543 1543 boot_puts(" : scheduler virtual base address = "); 1544 boot_putx( sched_vbase + (lpid<<1 0) );1544 boot_putx( sched_vbase + (lpid<<12) ); 1545 1545 boot_puts("\n"); 1546 1546 #endif 1547 1547 // current processor scheduler pointer : psched 1548 static_scheduler_t* psched = (static_scheduler_t*)(sched_vbase+(lpid<<1 0));1548 static_scheduler_t* psched = (static_scheduler_t*)(sched_vbase+(lpid<<12)); 1549 1549 1550 1550 // initialise the "tasks" variable -
soft/giet_vm/boot/reset.S
r238 r240 183 183 184 184 # all processors initialise the CP0 SCHED register 185 # SCHED contains the scheduler s arrayvirtual base address185 # SCHED contains the scheduler virtual base address 186 186 mfc0 k0, CP0_PROCID 187 187 andi k0, k0, 0xFFF
Note: See TracChangeset
for help on using the changeset viewer.