massive overhaul to my exception system

This commit is contained in:
2025-06-05 20:28:17 -04:00
parent 79f04df82e
commit 3e01dc2074
5 changed files with 223 additions and 40 deletions

View File

@ -3,7 +3,7 @@
CC = i686-elf-gcc
DEBUG_FLAGS = -D__TESTING__ -g -Wno-div-by-zero
DEBUG_FLAGS = -D__TESTING__ -g
CFLAGS = -m32 -ffreestanding -Wall -Wextra -Werror -Wpedantic --sysroot=$(PWD)/sysroot -isystem=/usr/include -Iinclude -MD $(DEBUG_FLAGS)
@ -39,7 +39,7 @@ all: kernel.elf
env: install-headers install-libs # TODO: change this to a file specific target, so it doesnt recompile everytime, and so we can move as a prereq on kernel.elf
util/./gen-clangd.sh
kernel.elf: install-headers install-libs $(c_kern_objects) $(asm_kern_objects)
kernel.elf: install-headers install-libs env $(c_kern_objects) $(asm_kern_objects)
$(CC) $(CFLAGS) -T $(shell find . -name "link.ld") -o $@ $(c_kern_objects) $(asm_kern_objects) -nostdlib -lk -lgcc
os.iso: kernel.elf