minix/kernel/arch/i386/Makefile.inc
Tomas Hruby 62c666566e SMP - We boot APs
- 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
2010-09-15 14:09:52 +00:00

50 lines
787 B
Makefile

# Makefile for arch-dependent kernel code
.include <bsd.own.mk>
.PATH: ${.CURDIR}/arch/${ARCH}
SRCS+= arch_do_vmctl.c \
breakpoints.c \
arch_clock.c \
debugreg.S \
do_int86.c \
do_iopenable.c \
do_readbios.c \
do_sdevio.c \
exception.c \
i8259.c \
io_inb.S \
io_inl.S \
io_intr.S \
io_inw.S \
io_outb.S \
io_outl.S \
io_outw.S \
klib.S \
klib16.S \
multiboot.S \
memory.c \
oxpcie.c \
protect.c \
arch_system.c \
apic.c \
apic_asm.S \
arch_watchdog.c \
pre_init.c \
acpi.c
.ifdef CONFIG_SMP
SRCS += arch_smp.c trampoline.S
.endif
.if ${COMPILER_TYPE} == "ack"
I86CPPFLAGS = -mi86
I86LDFLAGS = -mi86
CPPFLAGS.klib16.S = ${I86CPPFLAGS}
LDFLAGS.klib16.S = ${I86LDFLAGS}
CPPFLAGS.trampoline.S = ${I86CPPFLAGS}
LDFLAGS.trampoline.S = ${I86LDFLAGS}
.endif