Rev 4156 | Rev 4420 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4156 | Rev 4296 | ||
---|---|---|---|
Line 89... | Line 89... | ||
89 | 89 | ||
90 | count_t i; |
90 | count_t i; |
91 | for (i = 0; i < min3(bootinfo->cnt, TASKMAP_MAX_RECORDS, CONFIG_INIT_TASKS); i++) { |
91 | for (i = 0; i < min3(bootinfo->cnt, TASKMAP_MAX_RECORDS, CONFIG_INIT_TASKS); i++) { |
92 | init.tasks[i].addr = bootinfo->tasks[i].addr; |
92 | init.tasks[i].addr = bootinfo->tasks[i].addr; |
93 | init.tasks[i].size = bootinfo->tasks[i].size; |
93 | init.tasks[i].size = bootinfo->tasks[i].size; |
94 | strncpy(init.tasks[i].name, bootinfo->tasks[i].name, |
94 | str_cpy(init.tasks[i].name, CONFIG_TASK_NAME_BUFLEN, |
95 | CONFIG_TASK_NAME_BUFLEN); |
95 | bootinfo->tasks[i].name); |
96 | } |
96 | } |
97 | 97 | ||
98 | for (i = 0; i < CPUMAP_MAX_RECORDS; i++) { |
98 | for (i = 0; i < CPUMAP_MAX_RECORDS; i++) { |
99 | if ((bootinfo->cpumap & (1 << i)) != 0) |
99 | if ((bootinfo->cpumap & (1 << i)) != 0) |
100 | cpu_count++; |
100 | cpu_count++; |