ptos/amd64: cpu: Add MP trampoline stub

Signed-off-by: Chloe M <chloe@mensia.org>
This commit is contained in:
2026-07-15 19:48:12 -04:00
parent 3e481cd58a
commit 0265810d9a
5 changed files with 83 additions and 2 deletions
+10 -1
View File
@@ -33,12 +33,21 @@ CFLAGS = \
-I$(PT_PROJECT_ROOT)/service/spkg/head/
.PHONY: all
all: bin
all: trampoline bin
.PHONY: bin
bin: $(OFILES) $(ASMOFILES)
$(PROMPT) "LD" $(KERNEL_PATH)
$(SYS_LD) -Tdev/link.ld $(MISC_OFILES) -o $(KERNEL_PATH)
# Copy the MP trampoline
objcopy \
--update-section .mp_trampoline=cpu/mp_trampoline.bin \
$(KERNEL_PATH) \
$(KERNEL_PATH)
.PHONY: trampoline
trampoline:
nasm -fbin cpu/mp_trampoline.asm -o cpu/mp_trampoline.bin
-include $(CDFILES)
%.o: %.c