Changes in kernel/arch/mips32/src/mips32.c [4872160:3a2f8aa] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/src/mips32.c
r4872160 r3a2f8aa 57 57 #include <macros.h> 58 58 #include <config.h> 59 #include <str .h>59 #include <string.h> 60 60 #include <arch/drivers/msim.h> 61 61 #include <arch/asm/regname.h> … … 83 83 void arch_pre_main(void *entry __attribute__((unused)), bootinfo_t *bootinfo) 84 84 { 85 init.cnt = min3(bootinfo->cnt, TASKMAP_MAX_RECORDS, CONFIG_INIT_TASKS); 85 /* Setup usermode */ 86 init.cnt = bootinfo->cnt; 86 87 87 88 size_t i; 88 for (i = 0; i < init.cnt; i++) {89 init.tasks[i].addr = (uintptr_t)bootinfo->tasks[i].addr;89 for (i = 0; i < min3(bootinfo->cnt, TASKMAP_MAX_RECORDS, CONFIG_INIT_TASKS); i++) { 90 init.tasks[i].addr = bootinfo->tasks[i].addr; 90 91 init.tasks[i].size = bootinfo->tasks[i].size; 91 92 str_cpy(init.tasks[i].name, CONFIG_TASK_NAME_BUFLEN,
Note:
See TracChangeset
for help on using the changeset viewer.