Files
lk/platform/pc/rules.mk
Travis Geiselbrecht 936ee8ac81 [arch][x86] start of an ioapic driver
Doesn't do much but provided the detection path for it and ability to
hold initialized state. The higher level platform code is going to need
to use it directly so will mostly just provide an api for access to it.

Moved ACPI sniffing back to just after the VM is initialized instead of
all the way into platform_init(). This should try to ensure that all
drivers that come up afterwards will have ioapics discovered in case
future development tries to enable and use them, kicking the machine out
of virtual-wire-mode.
2025-09-24 01:18:52 -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/bio
MODULE_DEPS += lib/cbuf
MODULE_DEPS += lib/fixed_point
ifneq ($(CPU),legacy)
MODULE_DEPS += dev/bus/pci/drivers
MODULE_DEPS += lib/acpi_lite
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