aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/makefile
diff options
context:
space:
mode:
authorEmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com>2024-05-31 21:08:22 -0400
committerEmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com>2024-05-31 21:08:22 -0400
commit1bd17dce9a8297f86f3bb34b3f440490b601eca6 (patch)
tree9741c7c99e9f5675dc08b26b005eb1f6047623f2 /kernel/makefile
parent4956918086a85031bb47b28e868c0ff8e6cc8f95 (diff)
started working on pmm and fixed printf doing weird things to the
numbers
Diffstat (limited to 'kernel/makefile')
-rw-r--r--kernel/makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/kernel/makefile b/kernel/makefile
index dfced86..030caaa 100644
--- a/kernel/makefile
+++ b/kernel/makefile
@@ -3,15 +3,16 @@
CFLAGS := -ffreestanding -Wall -Wextra -g -std=gnu99 -O2 -Iinclude --sysroot=$(SYSROOT) \
-isystem="/usr/include"
CXXFLAGS := -ffreestanding -Wall -Wextra -fno-exceptions -fno-rtti -g -O2 -Iinclude --sysroot=$(SYSROOT) \
- -isystem="/usr/include"
+ -isystem="/usr/include" -std=gnu++20
LDFLAGS := -T arch/$(ARCH)/linker.ld -ffreestanding -g -O2 -Iinclude --sysroot=$(SYSROOT) \
-isystem="/usr/include"
ASMFLAGS :=
ifeq ($(ARCH),x86_64)
-CFLAGS += -mno-red-zone -mcmodel=kernel -mno-sse -mno-sse2 -mno-mmx
-CXXFLAGS += -mno-red-zone -mcmodel=kernel -mno-sse -mno-sse2 -mno-mmx
-LDFLAGS += -mno-red-zone -mcmodel=kernel -mno-sse -mno-sse2 -mno-mmx
+CFLAGS += -mno-red-zone -mcmodel=kernel -mno-80387 -mno-sse -mno-sse2 -mno-mmx
+CXXFLAGS += -mno-red-zone -mcmodel=kernel -mno-80387 -mno-sse -mno-sse2 -mno-mmx
+LDFLAGS += -mno-red-zone -mcmodel=kernel -mno-80387 -mno-sse -mno-sse2 -mno-mmx \
+ -z max-page-size=0x1000
ASMFLAGS += -felf64
endif
@@ -75,4 +76,4 @@ install-headers: $(HEADERS)
clean:
$(info [INFO] Cleaning)
- $(RM) ${OBJS} $(DEPFILES) kernel.bin \ No newline at end of file
+ $(RM) ${OBJS} $(DEPFILES) kernel.bin