GDT init (load + flush)

This commit is contained in:
2025-12-22 11:20:24 +01:00
parent 29deb20cd7
commit 6fc7266716
8 changed files with 195 additions and 72 deletions

View File

@@ -1,6 +1,6 @@
build:
rm -f *.o
x86_64-elf-gcc -g -c -I src src/io/serial.c src/io/term.c src/io/printf.c src/kmain.c -Wall -Wextra -std=gnu99 -nostdlib -ffreestanding -fno-stack-protector -fno-stack-check -fno-PIC -ffunction-sections -fdata-sections -mcmodel=kernel
x86_64-elf-gcc -g -c -I src src/mem/utils.h src/mem/gdt.c src/io/serial.c src/io/term.c src/io/printf.c src/kmain.c -Wall -Wextra -std=gnu99 -nostdlib -ffreestanding -fno-stack-protector -fno-stack-check -fno-PIC -ffunction-sections -fdata-sections -mcmodel=kernel
objcopy -O elf64-x86-64 -B i386 -I binary zap-light16.psf zap-light16.o
x86_64-elf-ld -o pepperk -T linker.ld *.o
@@ -27,7 +27,7 @@ build-iso: limine/limine build
./limine/limine bios-install pepper.iso
debug:
qemu-system-x86_64 -drive file=pepper.iso -s -S &
qemu-system-x86_64 -drive file=pepper.iso -s -S -d int -no-reboot &
gdb pepperk --command=debug.gdb
run: build-iso