Changeset 267 for soft/giet_vm/giet_boot
- Timestamp:
- Jan 13, 2014, 3:20:29 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_boot/boot.c
r263 r267 1157 1157 // are reserved for the kernel (context switch) 1158 1158 1159 unsigned int alloc_tty_channel = 1; // TTY channel allocator1159 unsigned int alloc_tty_channel = 0; // TTY channel allocator 1160 1160 unsigned int alloc_nic_channel = 0; // NIC channel allocator 1161 1161 unsigned int alloc_cma_channel = 0; // CMA channel allocator 1162 1162 unsigned int alloc_hba_channel = 0; // IOC channel allocator 1163 1163 unsigned int alloc_tim_channel[X_SIZE*Y_SIZE]; // user TIMER allocators 1164 1165 if (!GIET_MONO_TTY) alloc_tty_channel++; 1164 1166 1165 1167 ///////////////////////////////////////////////////////////////////////// … … 1364 1366 } 1365 1367 ctx_tty = alloc_tty_channel; 1366 alloc_tty_channel++;1368 if (!GIET_MONO_TTY) alloc_tty_channel++; 1367 1369 } 1368 1370 // ctx_nic : NIC channel global index provided by the global allocator … … 1468 1470 // get local task index in scheduler 1469 1471 unsigned int ltid = psched->tasks; 1472 1473 // get vspace thread index 1474 unsigned int thread_id = task[task_id].trdid; 1470 1475 1471 1476 if (ltid >= IDLE_TASK_INDEX) … … 1500 1505 psched->context[ltid][CTX_LTID_ID] = ltid; 1501 1506 psched->context[ltid][CTX_GTID_ID] = task_id; 1507 psched->context[ltid][CTX_TRDID_ID] = thread_id; 1502 1508 psched->context[ltid][CTX_VSID_ID] = vspace_id; 1503 1509 psched->context[ltid][CTX_RUN_ID] = 1; … … 1505 1511 #if BOOT_DEBUG_SCHED 1506 1512 _puts("\nTask "); 1507 _puts( task[task_id].name );1508 _puts(" (");1509 1513 _putd( task_id ); 1510 _puts(" )allocated to processor ");1514 _puts(" allocated to processor "); 1511 1515 _putd( gpid ); 1512 1516 _puts("\n - ctx[LTID] = "); … … 1536 1540 _puts("\n - ctx[VSID] = "); 1537 1541 _putd( psched->context[ltid][CTX_VSID_ID] ); 1542 _puts("\n - ctx[TRDID] = "); 1543 _putd( psched->context[ltid][CTX_TRDID_ID] ); 1538 1544 _puts("\n"); 1539 1545 #endif
Note: See TracChangeset
for help on using the changeset viewer.