62c666566e
- kernel detects CPUs by searching ACPI tables for local apic nodes - each CPU has its own TSS that points to its own stack. All cpus boot on the same boot stack (in sequence) but switch to its private stack as soon as they can. - final booting code in main() placed in bsp_finish_booting() which is executed only after the BSP switches to its final stack - apic functions to send startup interrupts - assembler functions to handle CPU features not needed for single cpu mode like memory barries, HT detection etc. - new files kernel/smp.[ch], kernel/arch/i386/arch_smp.c and kernel/arch/i386/include/arch_smp.h - 16-bit trampoline code for the APs. It is executed by each AP after receiving startup IPIs it brings up the CPUs to 32bit mode and let them spin in an infinite loop so they don't do any damage. - implementation of kernel spinlock - CONFIG_SMP and CONFIG_MAX_CPUS set by the build system |
||
---|---|---|
.. | ||
arch/i386 | ||
system | ||
clock.c | ||
clock.h | ||
config.h | ||
const.h | ||
cpulocals.c | ||
cpulocals.h | ||
debug.c | ||
debug.h | ||
extract-errno.sh | ||
extract-mfield.sh | ||
extract-mtype.sh | ||
glo.h | ||
interrupt.c | ||
ipc.h | ||
kernel.h | ||
main.c | ||
Makefile | ||
perf.h | ||
priv.h | ||
proc.c | ||
proc.h | ||
profile.c | ||
profile.h | ||
proto.h | ||
smp.c | ||
smp.h | ||
spinlock.h | ||
start.c | ||
system.c | ||
system.h | ||
table.c | ||
type.h | ||
utility.c | ||
vm.h | ||
watchdog.c | ||
watchdog.h |