Finished implementing paging init and long mode switch

This commit is contained in:
2022-12-13 22:22:04 +00:00
parent 3402207602
commit 766667a6ad
5 changed files with 219 additions and 24 deletions

View File

@@ -15,6 +15,11 @@ SRC_DIRS := core
KERNEL_C_FILES := $(foreach dir,$(SRC_DIRS),$(wildcard $(dir)/*.c))
KERNEL_OBJ := $(addprefix $(BUILDDIR)/,$(KERNEL_C_FILES:.c=.o))
BUILD_ID := $(shell tools/generate_build_id.py --arch $(ARCH))
CFLAGS := -DBUILD_ID=\"$(BUILD_ID)\"
ASMFLAGS := -DBUILD_ID=\"$(BUILD_ID)\"
$(BUILDDIR)/$(KERNEL_EXEC): $(KERNEL_OBJ) $(ARCH_OBJ)
@echo " \033[1;36mLINK\033[0m \033[1m$@\033[0m"
@mkdir -p $(@D)