Changes between Version 3 and Version 4 of DsxvmMappingInfoStructure
- Timestamp:
- Aug 30, 2012, 2:29:05 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DsxvmMappingInfoStructure
v3 v4 11 11 = Document XML Structure = 12 12 13 In order to simplify the parsing of the document the order between elements has to be respected.13 In order to simplify the parsing of the document, the order between elements has to be respected. 14 14 This document contain two main descriptions: 15 15 * a minimal description of the hardware : all elements described must exist on the targeted architecture. Non described element will not be used by the soft. 16 * a description of the soft mapping on the hardware16 * a description of the software mapping on the hardware 17 17 18 18 == The mapping_info element == 19 19 20 The two descriptions are regrouped in the `mapping_info` element, which contain the following attributes:20 The two descriptions are regrouped in the `mapping_info` element, which contains the following attributes: 21 21 * `name`: the name of the mapping described 22 * `signature`: a way to check that we are handling a mapping info structure ,must be equal to "0xdeadbeef"23 * `clusters`: the number of clusters ofthe targeted architecture22 * `signature`: a way to check that we are handling a mapping info structure. It must be equal to "0xdeadbeef" 23 * `clusters`: the number of clusters in the targeted architecture 24 24 * `vpsaces`: the number of vspaces defined. This number is typically equal to the number of applications 25 25 26 26 The `mapping_info` element contains the following elements: 27 27 * a `clusterset` element, describing the targeted hardware 28 * a `globalset` element, describing the global segments, i.e. segments replicated in all virtual spaces (typically the kernel code)28 * a `globalset` element, describing the global segments, i.e. the segments replicated in all virtual spaces (typically the kernel code) 29 29 * a `vspaceset` element, describing the mapping for all virtual spaces 30 30 … … 39 39 40 40 This element contains the following attribute: 41 * `index`: the cluster index, or ''id''. It is unique for each cluster and must range from 0 to ''n - 1'' (n being the number of cluster). The cluster index make the correspondance with the cluster id in the architecture.41 * `index`: the cluster index, or ''id''. It is unique for each cluster and must range from 0 to ''n - 1'' (n being the number of cluster). The cluster index makes the correspondance with the cluster id in the architecture. 42 42 43 43 The cluster element contains the following elements: … … 50 50 51 51 This element contains the following attributes: 52 * `name`: name of the segment. The name of the segment is not related to any segment name in the architecture. It is used to associate virtual segments on physical segments inside the mapping info file. 52 * `name`: name of the segment. The name of the segment is not related to any segment name in the architecture. It is used to associate virtual segments on physical segments inside the mapping info file. The name is local to the cluster, i.e. two different cluster can have two pseg with the same name. 53 53 * `base`: base of the physical segment. 54 54 * `type`: type of the segment. It can be one of `RAM`, `ROM`, `PERI` … … 59 59 60 60 This element contains the following attribute: 61 * `index`: the processor index, or ''id''. It is unique for each processor and must range from 0 to ''n - 1'' inside the cluster (vrai ! c'est pas un id global.). The index corresponds to the processor id in the architecture.61 * `index`: the processor index, or ''id''. It is unique for each processor and must range from 0 to ''n - 1'' inside the cluster. The index corresponds to the processor id in the architecture. 62 62 63 63 The proc element contains the following element: … … 67 67 == The irq (interrupt request) element 68 68 69 This element describe the routing of the interruptionssignals on the hardware. It contains the following attributes:70 * `type`: The type of interrupt request. Currently canonly be `HARD`.69 This element describes the routing of interruption signals on the hardware. It contains the following attributes: 70 * `type`: The type of interrupt request. It can currently only be `HARD`. 71 71 * `icuid`: the index of the interrupt entry in the hardware icu or xicu. 72 72 * `channel`: the peripheral channel from which the interruption is connected (for peripherals with only one channel, it must be set to zero). 73 73 * `isr`: the interrupt sub-routine types: 74 * `ISR_SWITCH`: Used to schedule the tasks of a processor ,channel attribute must be equal to the processor id.75 * `ISR_TTY`: handle the irqemaning from the tty76 * `ISR_DMA`: handle the dma irq77 * `ISR_IOC`: handle the block device interruption78 * `ISR_TIMER`: handle user timer interruption 74 * `ISR_SWITCH`: Used to schedule the tasks of a processor (triggers a context-switch); the channel attribute must be equal to the processor id. 75 * `ISR_TTY`: handles the interruptions emaning from the tty 76 * `ISR_DMA`: handles the dma interruptions 77 * `ISR_IOC`: handles the block device interruptions 78 * `ISR_TIMER`: handle user timer interruptions 79 79 80 80 … … 90 90 * `PPERIPH_TYPE_NIC`: nic buffer peripheral 91 91 * `PPERIPH_TYPE_IOB`: io bridge peripheral 92 * `psegname`: name of the physical segment of the peripheral. This name must be one of the pseg elements name .(pourquoi nom du pseg et pas nom du vseg ?)93 * `channels`: the number of channels in the peripheral (one channel usually corresponds to one processor ; an exception is for ttys where one channel is used for the operating system)92 * `psegname`: name of the physical segment of the peripheral. This name must be one of the pseg elements name, and whose type is `PERI`. This is used to make the association between the physical segment declared in the architecture and the peripheral (pourquoi nom du pseg et pas nom du vseg ?) 93 * `channels`: the number of channels in the peripheral (one channel usually corresponds to one processor) 94 94 95 95 … … 104 104 105 105 This element contains the following attributes: 106 * `name`: name of the virtual segment (utilisé quelque part ? Non)107 * `vbase`: base address of the virtual segment in the final binary. Must be page size (4096) aligned.106 * `name`: name of the virtual segment. This name is used only for clarityand has no functional use. 107 * `vbase`: base address of the virtual segment in the final binary. It must be page size (0x1000 or 4Ko) aligned. 108 108 * `psegname`: name of the physical segment in which this virtual segment will be mapped. This name must be one of the pseg elements name. 109 109 * `clusterid`: cluster id in which the the psegname have been defined. … … 113 113 * `W`: the segment is writable 114 114 * `U`: the segment is accessible is user mode 115 * `ident`: (optional) is 1 if the segment is an identity segment, 0 otherwise. An identity virtual segment is a virtual segment whose base address is the same as the one of the physical segment it is mapped on. Generally used for the mapping of vseg on peripherals.115 * `ident`: (optional) is 1 if the segment is an identity segment, 0 otherwise. An identity virtual segment is a virtual segment whose base address is the same as the one of the physical segment it is mapped on. This field is not necessarily required (TODO : à vérifier si c'est nécessaire et dans ce cas pourquoi) 116 116 117 117 The vseg element contains the following elements: … … 124 124 * `name`: the name of the virtual object. ''utilisé ?'' pour obtenir les ressources (mwmr, barrier,..) en mode utilisateur grace a l'appel system vobj_get_vbase(stdio.c). 125 125 * `type`: type of the virtual object. It can be one of the following: 126 * `ELF`: describe an elf section.127 * `PTAB`: reserve memory space for the page table, each vspace must have one vobj of this type.128 * `PERI`: for peripheral mapping.129 * `MWMR`: describe an mwmr channel, this vobj will be apropriatly initialised by the operating system130 * `LOCK`: describe a lock, this vobj will be apropriatly initialised by the operating system131 * `BAR IERR`: describe a barrier, this vobj will be apropriatly initialised by the operating system132 * `BUFFER`: describe a buffer. The content of this vobj is not initialised126 * `ELF`: describes an elf section. The system has to load the elf described by the binpath in this segment. 127 * `PTAB`: memory space reservation for the page table. Each vspace must have one vobj of this type. The system will have to initialize the page tables with the information contained in this file. 128 * `PERI`: type of vseg used for peripheral mapping. No particular action is performed by the operating system on this type of segment. 129 * `MWMR`: describes an mwmr channel. This vobj will be appropriately initialized by the operating system. 130 * `LOCK`: describes a lock. This vobj will be appropriately initialized by the operating system. 131 * `BARRIER`: describes a barrier. This vobj will be appropriately initialized by the operating system. 132 * `BUFFER`: describes a buffer. No particular action is performed by the operating system on this type of segment. 133 133 134 * `length`: size of the virtual object in bytes. The sum of the length of all vobj define the length of the vseg.135 * `align`: (optional) logarithm in base 2 of the physical alignemnt required for this segment. For example, a value of 13 means that the segment must be aligned on 0x2000. Be careful when using this attribute, since the size of the vobj will be incremented until the 136 * `binpath`: path to the file to load in this segment, if any (ELF vobj). This path can be relative or absolute.134 * `length`: size of the virtual object in bytes. The sum of the length of all vobj defines the length of the vseg. 135 * `align`: (optional) logarithm in base 2 of the physical alignemnt required for this segment. For example, a value of 13 means that the segment must be aligned on 0x2000. Be careful when using this attribute, since the size of the vobj will be incremented until the (??) 136 * `binpath`: path to the file to load in this segment, if any. It is used only for ELF segments, and must empty for other segment types. This path can be relative or absolute. 137 137 138 138 … … 147 147 This element contains the following attributes: 148 148 * `name`: name of the virtual space. 149 * `startname`: name of the data section of the application (a vspace correspond to an application). This section will contain at his top the table of task function entry.149 * `startname`: name of the data section of the application (a vspace corresponds to an application). This section will contain at its top the table of task function entry. 150 150 151 151 The vspace element contains the following elements: … … 161 161 * `proclocid`: processor local id on which to execute the task. 162 162 * `stackname`: name of the vobj on which to place the task's stack. 163 * `usetty`: if 1 the task a tty will be reserved tothe task, 0 otherwise.164 * `startid`: indicate the index in the `startname` vobj for this task function entry.163 * `usetty`: if 1 the task a tty will be reserved for the task, 0 otherwise. 164 * `startid`: indicates the index in the `startname` vobj for this task function entry. 165 165 166 166