Changeset 293
- Timestamp:
- Mar 3, 2014, 1:44:03 PM (11 years ago)
- Location:
- soft/giet_vm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_boot/boot.c
r289 r293 1302 1302 // must be re-initialised by kernel_parallel_init() 1303 1303 1304 psched->context[IDLE_TASK_INDEX][CTX_CR_ID] = 0; 1304 1305 psched->context[IDLE_TASK_INDEX][CTX_SR_ID] = 0xFF03; 1305 1306 psched->context[IDLE_TASK_INDEX][CTX_PTPR_ID] = _ptabs_paddr[0]>>13; … … 1499 1500 1500 1501 // initializes the task context in scheduler 1502 psched->context[ltid][CTX_CR_ID] = 0; 1501 1503 psched->context[ltid][CTX_SR_ID] = ctx_sr; 1502 1504 psched->context[ltid][CTX_SP_ID] = ctx_sp; … … 2201 2203 unsigned int kernel_entry = (unsigned int)&seg_kernel_init_base; 2202 2204 2205 #if GIET_DEBUG_INIT 2203 2206 _tty_get_lock( 0 ); 2204 _puts("\n[BOOT ] Processor[");2207 _puts("\n[BOOT DEBUG] Processor["); 2205 2208 _putd( cluster_xy >> Y_WIDTH ); 2206 2209 _puts(","); … … 2214 2217 _puts("\n"); 2215 2218 _tty_release_lock( 0 ); 2219 #endif 2216 2220 2217 2221 asm volatile( "jr %0" ::"r"(kernel_entry) ); -
soft/giet_vm/giet_common/utils.c
r268 r293 19 19 20 20 // This global variable is allocated in the boot.c file or in kernel_init.c file 21 extern static_scheduler_t* _schedulers[ X_SIZE * Y_SIZE * NB_PROCS_MAX];21 extern static_scheduler_t* _schedulers[NB_PROCS_MAX<<(X_WIDTH+Y_WIDTH)]; 22 22 23 23 /////////////////////////////////////////////////////////////////////////////////// -
soft/giet_vm/giet_kernel/kernel_init.c
r289 r293 408 408 _putx(epc_value); 409 409 _puts("\n"); 410 _tty_release_lock( 0 ); 411 #endif 412 413 _tty_get_lock( 0 ); 414 _puts("\n[GIET] Processor["); 410 411 _puts("\n[GIET DEBUG] Processor["); 415 412 _putd( cluster_xy >> Y_WIDTH ); 416 413 _puts(","); … … 424 421 _puts("\n"); 425 422 _tty_release_lock( 0 ); 423 #endif 426 424 427 425 // Step 7 : set registers and jump to user code
Note: See TracChangeset
for help on using the changeset viewer.