- Move a bit of the shared logic of secondary bootstrapping into a new function, lk_secondary_cpu_entry_early() which sets the current cpu pointer before calling the first half of the secondary LK_INIT routines. - Create the per cpu idle threads on the main cpu instead of the secondary as they come up. - Tweak all of the SMP capable architectures to use this new path. - Move the top level mp routines into a separate file top/mp.c - A bit more correctly ifdef out more SMP code.
23 lines
292 B
Makefile
23 lines
292 B
Makefile
LOCAL_DIR := $(GET_LOCAL_DIR)
|
|
|
|
MODULE := $(LOCAL_DIR)
|
|
|
|
MODULE_DEPS := \
|
|
app \
|
|
arch \
|
|
dev \
|
|
kernel \
|
|
platform \
|
|
target
|
|
|
|
MODULE_SRCS := \
|
|
$(LOCAL_DIR)/debug.c \
|
|
$(LOCAL_DIR)/init.c \
|
|
$(LOCAL_DIR)/main.c \
|
|
$(LOCAL_DIR)/mp.c \
|
|
|
|
|
|
MODULE_OPTIONS := extra_warnings
|
|
|
|
include make/module.mk
|