Ignore:
Timestamp:
Mar 5, 2013, 4:00:09 PM (12 years ago)
Author:
meunier
Message:

Ajout du malloc dans le Giet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/boot/boot_init.c

    r230 r232  
    13871387                //FIXME: the vspace_id should be the same for all ports: put it in the coproc?
    13881388                unsigned int vspace_id = cp_port[cp_port_id].vspaceid;
    1389                 unsigned int vobj_id = cp_port[cp_port_id].vobjlocid + vspace[vspace_id].vobj_offset;
     1389                unsigned int vobj_id = cp_port[cp_port_id].mwmr_vobjid + vspace[vspace_id].vobj_offset;
    13901390
    13911391                mwmr_channel_t * pmwmr = (mwmr_channel_t *) (vobj[vobj_id].paddr);
     
    16691669
    16701670            // ctx_sp :  Get the vobj containing the stack
    1671             unsigned int vobj_id = task[task_id].vobjlocid + vspace[vspace_id].vobj_offset;
     1671            unsigned int vobj_id = task[task_id].stack_vobjid + vspace[vspace_id].vobj_offset;
    16721672            unsigned int ctx_sp = vobj[vobj_id].vaddr + vobj[vobj_id].length;
    16731673
     
    17061706            boot_scheduler_set_context(gpid, ltid, CTX_LTID_ID, ltid);
    17071707            boot_scheduler_set_context(gpid, ltid, CTX_VSID_ID, vspace_id);
     1708            boot_scheduler_set_context(gpid, ltid, CTX_GTID_ID, task_id);
    17081709            boot_scheduler_set_context(gpid, ltid, CTX_RUN_ID, 1);
    17091710
Note: See TracChangeset for help on using the changeset viewer.