- Timestamp:
- 2018-10-10T17:41:44Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9286475
- Parents:
- 63c1dd5
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-10-10 17:11:15)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-10-10 17:41:44)
- Location:
- kernel/arch
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/include/arch/arch.h
r63c1dd5 r63a045c 53 53 size_t cnt; 54 54 utask_t tasks[TASKMAP_MAX_RECORDS]; 55 } taskmap_t; 56 57 typedef struct { 58 taskmap_t taskmap; 55 59 } bootinfo_t; 56 60 -
kernel/arch/arm32/src/arm32.c
r63c1dd5 r63a045c 67 67 void arm32_pre_main(void *entry __attribute__((unused)), bootinfo_t *bootinfo) 68 68 { 69 init.cnt = min3(bootinfo-> cnt, TASKMAP_MAX_RECORDS, CONFIG_INIT_TASKS);69 init.cnt = min3(bootinfo->taskmap.cnt, TASKMAP_MAX_RECORDS, CONFIG_INIT_TASKS); 70 70 71 71 size_t i; 72 72 for (i = 0; i < init.cnt; i++) { 73 init.tasks[i].paddr = KA2PA(bootinfo->task s[i].addr);74 init.tasks[i].size = bootinfo->task s[i].size;73 init.tasks[i].paddr = KA2PA(bootinfo->taskmap.tasks[i].addr); 74 init.tasks[i].size = bootinfo->taskmap.tasks[i].size; 75 75 str_cpy(init.tasks[i].name, CONFIG_TASK_NAME_BUFLEN, 76 bootinfo->task s[i].name);76 bootinfo->taskmap.tasks[i].name); 77 77 } 78 78 -
kernel/arch/ia64/include/arch/bootinfo.h
r63c1dd5 r63a045c 36 36 #define MEMMAP_FREE_MEM 0 37 37 38 /** Size of buffer for storing task name in binit_task_t. */38 /** Size of buffer for storing task name in utask_t. */ 39 39 #define BOOTINFO_TASK_NAME_BUFLEN 32 40 40 … … 43 43 size_t size; 44 44 char name[BOOTINFO_TASK_NAME_BUFLEN]; 45 } binit_task_t;45 } utask_t; 46 46 47 47 typedef struct { 48 48 size_t cnt; 49 binit_task_t tasks[TASKMAP_MAX_RECORDS];50 } binit_t;49 utask_t tasks[TASKMAP_MAX_RECORDS]; 50 } taskmap_t; 51 51 52 52 typedef struct { … … 57 57 58 58 typedef struct { 59 binit_t taskmap;59 taskmap_t taskmap; 60 60 61 61 memmap_item_t memmap[MEMMAP_ITEMS]; -
kernel/arch/mips32/include/arch/arch.h
r63c1dd5 r63a045c 56 56 57 57 typedef struct { 58 size_t cnt; 59 utask_t tasks[TASKMAP_MAX_RECORDS]; 60 } taskmap_t; 61 62 typedef struct { 58 63 #if defined(MACHINE_lmalta) || defined(MACHINE_bmalta) 59 64 uint32_t sdram_size; 60 65 #endif 61 66 uint32_t cpumap; 62 size_t cnt; 63 utask_t tasks[TASKMAP_MAX_RECORDS]; 67 taskmap_t taskmap; 64 68 } bootinfo_t; 65 69 -
kernel/arch/mips32/src/mips32.c
r63c1dd5 r63a045c 88 88 void mips32_pre_main(void *entry __attribute__((unused)), bootinfo_t *bootinfo) 89 89 { 90 init.cnt = min3(bootinfo-> cnt, TASKMAP_MAX_RECORDS, CONFIG_INIT_TASKS);90 init.cnt = min3(bootinfo->taskmap.cnt, TASKMAP_MAX_RECORDS, CONFIG_INIT_TASKS); 91 91 92 92 size_t i; 93 93 for (i = 0; i < init.cnt; i++) { 94 init.tasks[i].paddr = KA2PA(bootinfo->task s[i].addr);95 init.tasks[i].size = bootinfo->task s[i].size;94 init.tasks[i].paddr = KA2PA(bootinfo->taskmap.tasks[i].addr); 95 init.tasks[i].size = bootinfo->taskmap.tasks[i].size; 96 96 str_cpy(init.tasks[i].name, CONFIG_TASK_NAME_BUFLEN, 97 bootinfo->task s[i].name);97 bootinfo->taskmap.tasks[i].name); 98 98 } 99 99
Note:
See TracChangeset
for help on using the changeset viewer.