Add stack frame to panic

This commit is contained in:
ssimnb 2026-02-01 14:55:30 +01:00
parent b337e5193b
commit cfcb806ebf
16 changed files with 169 additions and 103 deletions

View file

@ -20,7 +20,8 @@ CFLAGS += -Wall \
-I src/include \
-O0 \
-ggdb3 \
-g
-g \
#-fno-omit-frame-pointer
CDEBUG = -g
LDFLAGS += -m elf_x86_64 \
-nostdlib \
@ -78,14 +79,12 @@ all:
$(AS) src/scheduler/sched.asm -o $(BUILD_DIR)/sched_asm.o $(NASMFLAGS)
# link everything to an elf
$(LD) -o $(BUILD_DIR)/SFB25.elf $(BUILD_DIR)/*.o $(LDFLAGS)
$(LD) -o $(BUILD_DIR)/Neobbo.elf $(BUILD_DIR)/*.o $(LDFLAGS)
# Create a directory which will be our ISO root.
mkdir -p iso_root
# Copy the relevant files over.
cp -v $(BUILD_DIR)/SFB25.elf limine.conf limine/limine-bios.sys \
cp -v $(BUILD_DIR)/Neobbo.elf limine.conf limine/limine-bios.sys \
limine/limine-bios-cd.bin limine/limine-uefi-cd.bin iso_root/
# Create the EFI boot tree and copy Limine's EFI executables over.
mkdir -p iso_root/EFI/BOOT