Ticket #3445: haiku-mps-check-enabled.patch
File haiku-mps-check-enabled.patch, 1.3 KB (added by , 16 years ago) |
---|
-
src/system/boot/platform/bios_ia32/smp.cpp
151 151 152 152 struct mp_base_processor *processor = (struct mp_base_processor *)pointer; 153 153 154 gKernelArgs.arch_args.cpu_apic_id[gKernelArgs.num_cpus] = processor->apic_id;155 gKernelArgs.arch_args.cpu_os_id[processor->apic_id] = gKernelArgs.num_cpus;156 gKernelArgs.arch_args.cpu_apic_version[gKernelArgs.num_cpus] = processor->apic_version;157 158 154 #ifdef TRACE_SMP 159 155 const char *cpuFamily[] = { "", "", "", "", "Intel 486", 160 156 "Intel Pentium", "Intel Pentium Pro", "Intel Pentium II" }; … … 164 160 processor->apic_id, processor->apic_version, (processor->cpu_flags & 0x2) ? 165 161 ", BSP" : "")); 166 162 163 /* skip if the processor is not enabled. */ 164 if(!(processor->cpu_flags & 0x1)) 165 break; 166 167 gKernelArgs.arch_args.cpu_apic_id[gKernelArgs.num_cpus] = processor->apic_id; 168 gKernelArgs.arch_args.cpu_os_id[processor->apic_id] = gKernelArgs.num_cpus; 169 gKernelArgs.arch_args.cpu_apic_version[gKernelArgs.num_cpus] = processor->apic_version; 170 167 171 gKernelArgs.num_cpus++; 168 172 pointer += sizeof(struct mp_base_processor); 169 173 break;