Rev 108 | Rev 192 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 108 | Rev 125 | ||
---|---|---|---|
Line 64... | Line 64... | ||
64 | panic("malloc/cpus"); |
64 | panic("malloc/cpus"); |
65 | 65 | ||
66 | /* initialize everything */ |
66 | /* initialize everything */ |
67 | memsetb((__address) cpu_private_data, sizeof(cpu_private_data_t) * config.cpu_count, 0); |
67 | memsetb((__address) cpu_private_data, sizeof(cpu_private_data_t) * config.cpu_count, 0); |
68 | memsetb((__address) cpus, sizeof(cpu_t) * config.cpu_count, 0); |
68 | memsetb((__address) cpus, sizeof(cpu_t) * config.cpu_count, 0); |
69 | 69 | ||
70 | for (i=0; i < config.cpu_count; i++) { |
70 | for (i=0; i < config.cpu_count; i++) { |
71 | cpus[i].stack = (__u8 *) malloc(CPU_STACK_SIZE); |
71 | cpus[i].stack = (__u8 *) malloc(CPU_STACK_SIZE); |
72 | if (!cpus[i].stack) |
72 | if (!cpus[i].stack) |
73 | panic("malloc/cpus[%d].stack\n", i); |
73 | panic("malloc/cpus[%d].stack\n", i); |
74 | 74 |