Changes between Version 8 and Version 9 of arch_info
- Timestamp:
- Jul 20, 2016, 2:42:47 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
arch_info
v8 v9 8 8 This binary file is exploited by the ALMOS-MK boot loader to configure ALMOS-MK. It can be generated by a specific '''arch_info.py''' python scrip, for each target architecture. 9 9 10 == 1) Cluster and cores identification==10 == __1) Cluster and cores identification__ == 11 11 12 12 === 1.1) Cluster identification === … … 27 27 The association of a composite index '''[cx,lid]''' to a global physical identifier '''gid''', is defined in the '''arch_info.bin''' file. 28 28 29 == 2) Hardware architecture description==29 == __2) Hardware architecture description__ == 30 30 31 31 For ALMOS-MK, the target hardware architecture is described in the binary file '''arch_info.bin'''. … … 60 60 These five C structures are defined in the [source:almos-work/tools/arch_info/arch_info.h arch_info.h] file. The access functions are defined in the [source:almos-work/tools/arch_info/arch_info.c arch_info.c] file. 61 61 62 == 3) The python script===62 == __3) The python script__ === 63 63 64 64 This section defines the python constructs that can be used to generate the '''arch_info.bin''' binary file. 65 65 These Python classes are defined in the [source:soft/almos-work/tools/python/genarch.py genarch.py] file. 66 67 == __Python hardware architecture description__ ==68 66 69 67 The target hardware architecture must be defined in the ''arch.py'' file , you must use the following constructors: … … 71 69 === 3.1) architecture === 72 70 73 The Archi( ) constructor build an architectureobject and defines the target architecture general parameters:71 The Archi( ) constructor build an ''archi'' object and defines the target architecture general parameters: 74 72 75 73 || '''name''' || mapping name == architecture name || … … 144 142 145 143 146 == 4) The boot_info_t structure==144 == __4) The boot_info_t structure__ == 147 145 148 146 The ALMOS-MK boot-loader uses the informations found in '''arch_info.bin''' to build one '''boot_info_t''' structure in each cluster. This generic '''boot_info_t''' structure is used by the ALMOS kernel to build in each cluster its own representation of the hardware.