| 1 | = GIET-VM / Mapping access functions = |
| 2 | |
| 3 | [[PageOutline]] |
| 4 | |
| 5 | The [source:soft/giet_vm/giet_common/utils.c utils.c] and [source:soft/giet_vm/giet_common/utils.h util.h] files define the functions used to extract informations from the mapping_info data structure (defined in the ''mapping_info.h'' file), that has been loaded into system memory by the boot-loader. |
| 6 | |
| 7 | They are prefixed by "_" to remind that they can only be executed by a processor in kernel mode. |
| 8 | |
| 9 | |
| 10 | === mapping_cluster_t* _get_cluster_base( mapping_header_t* header ) === |
| 11 | Returns a pointer on the first cluster in the clusters array. |
| 12 | |
| 13 | === mapping_cluster_t* _get_cluster_base( mapping_header_t* header ) === |
| 14 | Returns a pointer on the first cluster in the clusters array. |
| 15 | |
| 16 | === mapping_pseg_t* _get_pseg_base( mapping_header_t* header ) === |
| 17 | Returns a pointer on the first pseg in the psegs array. |
| 18 | |
| 19 | === mapping_vspace_t* _get_vspace_base( mapping_header_t* header ) === |
| 20 | Returns a pointer on the first vspace in the vspaces array. |
| 21 | |
| 22 | === mapping_vseg_t* _get_vseg_base( mapping_header_t* header ) === |
| 23 | Returns a pointer on the first vseg in the vsegs array. |
| 24 | |
| 25 | === mapping_vobj_t* _get_vobj_base( mapping_header_t* header ) === |
| 26 | Returns a pointer on the first vobj in the vobjs array. |
| 27 | |
| 28 | === mapping_cluster_t* _get_task_base( mapping_header_t* header ) === |
| 29 | Returns a pointer on the first task in the tasks array. |
| 30 | |
| 31 | === mapping_cluster_t* _get_proc_base( mapping_header_t* header ) === |
| 32 | Returns a pointer on the first proc in the procs array. |
| 33 | |
| 34 | === mapping_cluster_t* _get_irq_base( mapping_header_t* header ) === |
| 35 | Returns a pointer on the first irq in the irqs array. |
| 36 | |
| 37 | === mapping_cluster_t* _get_coproc_base( mapping_header_t* header ) === |
| 38 | Returns a pointer on the first coproc in the coprocs array. |
| 39 | |
| 40 | === mapping_cluster_t* _get_cp_port_base( mapping_header_t* header ) === |
| 41 | Returns a pointer on the first cpport in the cpports array. |
| 42 | |
| 43 | === mapping_cluster_t* _get_periph_base( mapping_header_t* header ) === |
| 44 | Returns a pointer on the first periph in the periphs array. |