The great 64-bit rewrite

* We did loose tasking and only have a paging skeleton, but hey it took like 4 months so i'm happy that there's something :p
This commit is contained in:
2026-02-08 13:04:39 +01:00
parent d9471572b8
commit 50a1d6198e
42 changed files with 2206 additions and 1786 deletions
+38
View File
@@ -0,0 +1,38 @@
# Tools
HOSTCC = cc
CC = cc
LD = ld
AS = nasm
AR = ar
OBJCOPY = objcopy
MAKE = make
# Flags
HOSTCCFLAGS = -Wall -Wextra -O2
CCFLAGS = -Wall -Wextra -m64 -ffreestanding -fcommon -Iinclude \
-mcmodel=kernel \
-fno-pie \
-fno-stack-protector \
-mno-mmx \
-mno-80387 \
-mno-sse \
-mno-sse2 \
-mno-red-zone \
-nostartfiles \
-nostdlib \
-nostdinc \
-fno-lto
ASFLAGS = -felf64
LDFLAGS = -melf_x86_64 -nostdlib -static \
--no-dynamic-linker \
-z text -z max-page-size=0x1000
ARFLAGS =
# Disk image
IMG_NAME = disk.img
IMG_SIZE = 256 # 256MB
# Qemu
Q_MEMORY = 256M
Q_AUDIODEV = pipewire