Files
lk/platform/pc/rules.mk
Travis Geiselbrecht 5a520eca3e [arch][x86] start getting inter-processor-interrupts working
-Move the local apic driver to arch/x86
-Add routines to send IPIs between cpus

Something is unstable at the moment and the system crashes after a while
with random corruptions when using SMP.
2025-04-01 00:40:50 -07:00

40 lines
821 B
Makefile

LOCAL_DIR := $(GET_LOCAL_DIR)
MODULE := $(LOCAL_DIR)
# two implementations, modern and legacy
# legacy implies older hardware, pre pentium, pre pci
CPU ?= modern
MODULE_DEPS += lib/acpi_lite
MODULE_DEPS += lib/bio
MODULE_DEPS += lib/cbuf
MODULE_DEPS += lib/fixed_point
ifneq ($(CPU),legacy)
MODULE_DEPS += dev/bus/pci/drivers
endif
MODULE_SRCS += \
$(LOCAL_DIR)/cmos.c \
$(LOCAL_DIR)/console.c \
$(LOCAL_DIR)/debug.c \
$(LOCAL_DIR)/ide.c \
$(LOCAL_DIR)/interrupts.c \
$(LOCAL_DIR)/keyboard.c \
$(LOCAL_DIR)/mp.c \
$(LOCAL_DIR)/mp-boot.S \
$(LOCAL_DIR)/pic.c \
$(LOCAL_DIR)/pit.c \
$(LOCAL_DIR)/platform.c \
$(LOCAL_DIR)/timer.c \
$(LOCAL_DIR)/uart.c \
LK_HEAP_IMPLEMENTATION ?= dlmalloc
GLOBAL_DEFINES += \
PLATFORM_HAS_DYNAMIC_TIMER=1
include make/module.mk