setos

拙OS
Log | Files | Refs | LICENSE

commit 91aeb2203d61ae581eb08d1bab781de528b7d5d5
parent bab8a914a37204c84878f414998c76638b6b3046
Author: Matsuda Kenji <info@mtkn.jp>
Date:   Fri, 29 Mar 2024 18:39:09 +0900

add debug flags

Diffstat:
MMakefile | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,7 +1,7 @@ EFI_CFLAGS = -nostdlib -fpic -mno-red-zone -fno-stack-protector -static \ - -fno-builtin \ + -fno-builtin -g \ -mno-stack-arg-probe -Wall -e EfiMain -KERN_CFLAGS = -nostdlib -fpic -mno-red-zone -ffreestanding -Wall +KERN_CFLAGS = -nostdlib -fpic -mno-red-zone -ffreestanding -Wall -g KERN_LDFLAGS = -e kernel_main -static OBJCOPY = objcopy SRC = loader.c utils.c @@ -34,7 +34,8 @@ kernel.elf: kernel.o kernel.ld run: disk.img qemu-system-x86_64 \ -bios /usr/share/edk2/x64/OVMF.fd \ - -drive format=raw,file=disk.img + -drive format=raw,file=disk.img \ + -gdb tcp::1234 -S test: test/* $(SRC) $(HDR) (cd test && make)