Rev 2787 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2787 | Rev 3424 | ||
---|---|---|---|
Line 65... | Line 65... | ||
65 | FRAME_ATOMIC); |
65 | FRAME_ATOMIC); |
66 | if (!cpus) |
66 | if (!cpus) |
67 | panic("malloc/cpus"); |
67 | panic("malloc/cpus"); |
68 | 68 | ||
69 | /* initialize everything */ |
69 | /* initialize everything */ |
70 | memsetb((uintptr_t) cpus, sizeof(cpu_t) * config.cpu_count, 0); |
70 | memsetb(cpus, sizeof(cpu_t) * config.cpu_count, 0); |
71 | 71 | ||
72 | for (i = 0; i < config.cpu_count; i++) { |
72 | for (i = 0; i < config.cpu_count; i++) { |
73 | cpus[i].stack = (uint8_t *) frame_alloc(STACK_FRAMES, FRAME_KA | FRAME_ATOMIC); |
73 | cpus[i].stack = (uint8_t *) frame_alloc(STACK_FRAMES, FRAME_KA | FRAME_ATOMIC); |
74 | 74 | ||
75 | cpus[i].id = i; |
75 | cpus[i].id = i; |
Line 102... | Line 102... | ||
102 | 102 | ||
103 | for (i = 0; i < config.cpu_count; i++) { |
103 | for (i = 0; i < config.cpu_count; i++) { |
104 | if (cpus[i].active) |
104 | if (cpus[i].active) |
105 | cpu_print_report(&cpus[i]); |
105 | cpu_print_report(&cpus[i]); |
106 | else |
106 | else |
107 | printf("cpu%d: not active\n", i); |
107 | printf("cpu%u: not active\n", i); |
108 | } |
108 | } |
109 | } |
109 | } |
110 | 110 | ||
111 | /** @} |
111 | /** @} |
112 | */ |
112 | */ |