From 53e2489b201d84ed5d9fc8bcdd65551bb6b43b9a Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sat, 15 Nov 2025 18:52:55 -0500 Subject: kern/amd64: cpu: Add kernel fence for trap entry A kernel fence ensures that the GS base will contain kernel data on entry. Signed-off-by: Ian Moffett --- sys/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sys/Makefile') diff --git a/sys/Makefile b/sys/Makefile index 0ee8c93..5291a43 100644 --- a/sys/Makefile +++ b/sys/Makefile @@ -7,7 +7,8 @@ SYS_CFLAGS = ARCH = .PHONY: all -all: kern arch +all: target kern arch + rm -rf target/ .PHONY: arch arch: @@ -22,3 +23,8 @@ kern: .PHONY: clean clean: cd arch/$(ARCH); make clean + +.PHONY: target +target: + mkdir -p target/inc/md/ + rsync -avr inc/arch/$(ARCH)/* target/inc/md/ -- cgit v1.2.3