Changeset 514 for soft/giet_vm/giet_common/utils.c
- Timestamp:
- Feb 14, 2015, 5:12:16 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_common/utils.c
r498 r514 620 620 } 621 621 ////////////////////////////////////////////////////////// 622 mapping_vobj_t * _get_vobj_base(mapping_header_t * header)623 {624 return (mapping_vobj_t *) ((char *) header +625 MAPPING_HEADER_SIZE +626 MAPPING_CLUSTER_SIZE * X_SIZE * Y_SIZE +627 MAPPING_PSEG_SIZE * header->psegs +628 MAPPING_VSPACE_SIZE * header->vspaces +629 MAPPING_VSEG_SIZE * header->vsegs );630 }631 //////////////////////////////////////////////////////////632 622 mapping_task_t * _get_task_base(mapping_header_t * header) 633 623 { … … 637 627 MAPPING_PSEG_SIZE * header->psegs + 638 628 MAPPING_VSPACE_SIZE * header->vspaces + 639 MAPPING_VOBJ_SIZE * header->vobjs +640 629 MAPPING_VSEG_SIZE * header->vsegs); 641 630 } … … 649 638 MAPPING_VSPACE_SIZE * header->vspaces + 650 639 MAPPING_VSEG_SIZE * header->vsegs + 651 MAPPING_VOBJ_SIZE * header->vobjs +652 640 MAPPING_TASK_SIZE * header->tasks); 653 641 } … … 661 649 MAPPING_VSPACE_SIZE * header->vspaces + 662 650 MAPPING_VSEG_SIZE * header->vsegs + 663 MAPPING_VOBJ_SIZE * header->vobjs +664 651 MAPPING_TASK_SIZE * header->tasks + 665 652 MAPPING_PROC_SIZE * header->procs); … … 673 660 MAPPING_PSEG_SIZE * header->psegs + 674 661 MAPPING_VSPACE_SIZE * header->vspaces + 675 MAPPING_VOBJ_SIZE * header->vobjs +676 662 MAPPING_VSEG_SIZE * header->vsegs + 677 663 MAPPING_TASK_SIZE * header->tasks + … … 687 673 MAPPING_PSEG_SIZE * header->psegs + 688 674 MAPPING_VSPACE_SIZE * header->vspaces + 689 MAPPING_VOBJ_SIZE * header->vobjs +690 675 MAPPING_VSEG_SIZE * header->vsegs + 691 676 MAPPING_TASK_SIZE * header->tasks + … … 702 687 MAPPING_PSEG_SIZE * header->psegs + 703 688 MAPPING_VSPACE_SIZE * header->vspaces + 704 MAPPING_VOBJ_SIZE * header->vobjs +705 689 MAPPING_VSEG_SIZE * header->vsegs + 706 690 MAPPING_TASK_SIZE * header->tasks +
Note: See TracChangeset
for help on using the changeset viewer.