Subversion Repositories HelenOS

Rev

Rev 4153 | Rev 4581 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4153 Rev 4263
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_ncpy(init.tasks[i].name, bootinfo->tasks[i].name,
95
            CONFIG_TASK_NAME_BUFLEN);
95
            CONFIG_TASK_NAME_BUFLEN);
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)