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