1
0
Fork 0

feat/kernel: Did some lapic stuff

This commit is contained in:
Kevin Alavik 2025-05-31 18:19:56 +02:00
parent d5371bcbb2
commit 01e2f6a3d8
Signed by: cmpsb
GPG key ID: 10D1CC0526FDC6D7
7 changed files with 193 additions and 91 deletions

View file

@ -36,7 +36,7 @@ ifeq ($(BUILD_MODE),release)
-mno-80387 -mno-mmx -mno-sse -mno-sse2 -mno-red-zone \
-mcmodel=kernel -fno-unwind-tables -fno-asynchronous-unwind-tables \
-s -Wno-unused-variable -DBUILD_MODE=\"release\"
NASMFLAGS :=
NASMFLAGS := -f elf64 -F dwarf -g
LDFLAGS := -nostdlib -static -z max-page-size=0x1000 -Wl,--gc-sections \
-T linker.ld -Wl,-m,elf_x86_64 -Wl,--strip-all
else
@ -45,7 +45,7 @@ else
-ffunction-sections -fdata-sections -m64 -march=x86-64 \
-mno-80387 -mno-mmx -mno-sse -mno-sse2 -mno-red-zone \
-mcmodel=kernel -Wno-unused-variable -DBUILD_MODE=\"dev\"
NASMFLAGS := -F dwarf -g
NASMFLAGS := -f elf64 -F dwarf -g
LDFLAGS := -nostdlib -static -z max-page-size=0x1000 -Wl,--gc-sections \
-T linker.ld -Wl,-m,elf_x86_64
endif