From 16a538de1a643af7cb45133d1eb5fd28e58d25d1 Mon Sep 17 00:00:00 2001 From: Joursoir Date: Fri, 7 Oct 2022 19:04:00 +0300 Subject: x86: add GDT code to the kernel --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index aebce96..0db6ae4 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,7 @@ KERNBIN = kernel.bin BOOT ?= bootloader ARCH = x86 +ARCH_PATH = arch/$(ARCH) ARCH_INCLUDE = $(PWD)/arch/$(ARCH)/include ARCH_BOOT = arch/$(ARCH)/boot/$(BOOT) @@ -26,7 +27,8 @@ KERN_HEAD = $(ARCH_BOOT)/head.o C_SOURCES = \ kernel/main.c \ kernel/string.c \ - drivers/video/console/vgacon.c + drivers/video/console/vgacon.c \ + $(ARCH_PATH)/gdt.c OBJECTS = ${C_SOURCES:.c=.o} export CC LD AS OBJDUMP -- cgit v1.2.3-18-g5258