Changeset 709 for soft/giet_vm/giet_xml/mapping_info.h
- Timestamp:
- Oct 1, 2015, 4:20:46 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_xml/mapping_info.h
r645 r709 14 14 // 15 15 // 2/ a description of the applications (called vspaces) to be - statically - 16 // launched on the platform. The number of parallel tasks per application is16 // mapped on the platform. The number of parallel threads per application is 17 17 // variable (can be one). Each vspace contains a variable number 18 18 // of virtual segments (called vsegs). 19 19 // 20 // 3/ the mapping directives: both t asks on processors, and software objects21 // (vsegs) on thephysical memory banks (psegs).20 // 3/ the mapping directives: both threads on processors, and software objects 21 // (vsegs) on physical memory banks (psegs). 22 22 // 23 23 // The mapping_info data structure is organised as the concatenation of … … 28 28 // - mapping_vspace_t vspace[] 29 29 // - mapping_vseg_t vseg[] 30 // - mapping_t ask_t task[]30 // - mapping_thread_t thread[] 31 31 // - mapping_proc_t proc[] 32 32 // - mapping_irq_t irq[] … … 44 44 #define MAPPING_VSEG_SIZE sizeof(mapping_vseg_t) 45 45 #define MAPPING_PSEG_SIZE sizeof(mapping_pseg_t) 46 #define MAPPING_T ASK_SIZE sizeof(mapping_task_t)46 #define MAPPING_THREAD_SIZE sizeof(mapping_thread_t) 47 47 #define MAPPING_PROC_SIZE sizeof(mapping_proc_t) 48 48 #define MAPPING_IRQ_SIZE sizeof(mapping_irq_t) … … 152 152 unsigned int psegs; // total number of physical segments 153 153 unsigned int vsegs; // total number of virtual segments 154 unsigned int t asks; // total number of tasks154 unsigned int threads; // total number of threads 155 155 unsigned int procs; // total number of processors 156 156 unsigned int irqs; // total number of irqs 157 157 unsigned int periphs; // total number of peripherals 158 char name[ 64];// mapping name158 char name[256]; // mapping name 159 159 } mapping_header_t; 160 160 … … 183 183 unsigned int start_vseg_id; // vseg containing start vector index 184 184 unsigned int vsegs; // number of vsegs in vspace 185 unsigned int t asks; // number of tasks in vspace185 unsigned int threads; // number of threads in vspace 186 186 unsigned int vseg_offset; // global index of first vseg in vspace 187 unsigned int t ask_offset; // global index of first taskin vspace187 unsigned int thread_offset; // global index of first thread in vspace 188 188 unsigned int active; // always active if non zero 189 189 } mapping_vspace_t; … … 220 220 221 221 222 ////////////////////////////////////////////////////// 223 typedef struct __attribute__((packed)) mapping_t ask_s224 { 225 char name[32]; // t askname (unique in vspace)222 //////////////////////////////////////////////////////// 223 typedef struct __attribute__((packed)) mapping_thread_s 224 { 225 char name[32]; // thread name (unique in vspace) 226 226 unsigned int clusterid; // global index in clusters set 227 227 unsigned int proclocid; // processor local index (inside cluster) 228 unsigned int trdid; // thread index in vspace228 unsigned int is_main; // this thread is the application entry point 229 229 unsigned int stack_vseg_id; // global index for vseg containing stack 230 230 unsigned int heap_vseg_id; // global index for vseg containing heap 231 231 unsigned int startid; // index in start_vector 232 unsigned int ltid; // t askindex in scheduler (dynamically defined)233 } mapping_t ask_t;232 unsigned int ltid; // thread index in scheduler (dynamically defined) 233 } mapping_thread_t; 234 234 235 235
Note: See TracChangeset
for help on using the changeset viewer.