Changeset 160 for soft/giet_vm/sys/common.c
- Timestamp:
- Jun 12, 2012, 4:21:27 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/sys/common.c
r158 r160 9 9 /////////////////////////////////////////////////////////////////////////////////// 10 10 11 #include <mapping_info.h>12 11 #include <common.h> 13 12 #include <drivers.h> … … 216 215 } 217 216 ///////////////////////////////////////////////////////////////////////////// 218 mapping_ task_t* _get_task_base( mapping_header_t* header )219 { 220 return (mapping_ task_t*)((char*)header +217 mapping_vobj_t* _get_vobj_base( mapping_header_t* header ) 218 { 219 return (mapping_vobj_t*) ((char*)header + 221 220 MAPPING_HEADER_SIZE + 222 221 MAPPING_CLUSTER_SIZE*header->clusters + 223 222 MAPPING_PSEG_SIZE*header->psegs + 224 223 MAPPING_VSPACE_SIZE*header->vspaces + 224 MAPPING_VSEG_SIZE*header->vsegs ); 225 } 226 ///////////////////////////////////////////////////////////////////////////// 227 mapping_task_t* _get_task_base( mapping_header_t* header ) 228 { 229 return (mapping_task_t*) ((char*)header + 230 MAPPING_HEADER_SIZE + 231 MAPPING_CLUSTER_SIZE*header->clusters + 232 MAPPING_PSEG_SIZE*header->psegs + 233 MAPPING_VSPACE_SIZE*header->vspaces + 234 MAPPING_VOBJ_SIZE*header->vobjs + 225 235 MAPPING_VSEG_SIZE*header->vsegs); 226 236 } 227 237 238
Note: See TracChangeset
for help on using the changeset viewer.