Properly print out the e820 entry types. Make kernel_directory and kernel_page_tables available to all. Add a memory unmap function. Update Makefile.

This commit is contained in:
2021-10-18 13:50:50 +01:00
parent b117dee07b
commit 2dcf083763
6 changed files with 49 additions and 1 deletions
+4
View File
@@ -1,4 +1,5 @@
CFLAGS = -std=gnu11 -m32 -mgeneral-regs-only -nostdlib -fno-builtin -fno-exceptions -fno-leading-underscore -fno-pie -fno-stack-protector -Wno-pointer-to-int-cast
CXXFLAGS = -m32 -fno-use-cxa-atexit -nostdlib -fno-builtin -fno-rtti -fno-exceptions -fno-leading-underscore
LDFLAGS =
DISK_IMG_FILES = build/kernel/kernel.bin
@@ -50,6 +51,9 @@ build/boot_stage2/stage2.o: src/boot_stage2/main.c
build/kernel/%.o: src/kernel/%.c
gcc $(CFLAGS) -o $@ -c $<
build/kernel/%.o: src/kernel/%.cpp
g++ $(CFLAGS) -o $@ -c $<
build/kernel/%.o: src/kernel/%.asm
nasm -felf32 $< -o $@