Changeset 514 for soft/giet_vm/giet_common/kernel_malloc.c
- Timestamp:
- Feb 14, 2015, 5:12:16 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_common/kernel_malloc.c
r495 r514 145 145 mapping_header_t * header = (mapping_header_t *)SEG_BOOT_MAPPING_BASE; 146 146 mapping_vseg_t * vsegs = _get_vseg_base(header); 147 mapping_vobj_t * vobjs = _get_vobj_base(header);148 147 mapping_pseg_t * psegs = _get_pseg_base(header); 149 148 mapping_cluster_t * clusters = _get_cluster_base(header); 150 149 151 150 unsigned int vseg_id; 152 unsigned int vobj_id;153 151 unsigned int pseg_id; 154 152 unsigned int cluster_id; … … 167 165 pseg_id = vsegs[vseg_id].psegid; 168 166 cluster_id = psegs[pseg_id].clusterid; 169 vobj_id = vsegs[vseg_id].vobj_offset; 170 if ( (vobjs[vobj_id].type == VOBJ_TYPE_HEAP) && 167 if ( (vsegs[vseg_id].type == VSEG_TYPE_HEAP) && 171 168 (clusters[cluster_id].x == x) && 172 169 (clusters[cluster_id].y == y) ) 173 170 { 174 171 *heap_base = vsegs[vseg_id].vbase; 175 *heap_size = v objs[vobj_id].length;172 *heap_size = vsegs[vseg_id].length; 176 173 return 0; 177 174 }
Note: See TracChangeset
for help on using the changeset viewer.