Changeset 220 for soft/giet_vm


Ignore:
Timestamp:
Oct 5, 2012, 3:02:38 PM (12 years ago)
Author:
karaoui
Message:

adding +1 to reach the stack top.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/sys/kernel_init.c

    r218 r220  
    217217    _set_context_slot( IDLE_TASK_INDEX, CTX_RUN_ID,  1 );
    218218    _set_context_slot( IDLE_TASK_INDEX, CTX_SR_ID,   0xFF03 );
    219     _set_context_slot( IDLE_TASK_INDEX, CTX_SP_ID,   (unsigned int)_idle_stack + (global_pid<<8) );
     219    _set_context_slot( IDLE_TASK_INDEX, CTX_SP_ID,   (unsigned int)_idle_stack + ((global_pid+1)<<8) );
    220220    _set_context_slot( IDLE_TASK_INDEX, CTX_RA_ID,   (unsigned int)&_ctx_eret );
    221221    _set_context_slot( IDLE_TASK_INDEX, CTX_EPC_ID,  (unsigned int)&_ctx_idle );
Note: See TracChangeset for help on using the changeset viewer.