diff --git a/Makefile b/Makefile index 63769e0..cbea915 100644 --- a/Makefile +++ b/Makefile @@ -32,7 +32,7 @@ fd.iso: kernel grub-mkrescue -o $@ isodir disk.img: - qemu-img create -f qcow2 disk2.img 32M + qemu-img create -f qcow2 disk.img 32M #https://gcc.gnu.org/onlinedocs/gcc/x86-Function-Attributes.html#x86-Function-Attributes arch/$(ARCH)/exception_handler.o:arch/$(ARCH)/exception_handler.c @@ -48,13 +48,12 @@ arch/$(ARCH)/irq_handler.o:arch/$(ARCH)/irq_handler.c test: CFLAGS += -DRUN_TEST -test: clean kernel +test: clean kernel disk.img qemu-system-x86_64 -kernel kernel -serial stdio -m 32M $(QEMU_OPT) -run:kernel +run:kernel disk.img qemu-system-x86_64 -kernel $< $(QEMU_OPT) - debug: CFLAGS += $(DEBUG_FLAGS) -DRUN_TEST debug: CXXFLAGS += $(DEBUG_FLAGS) debug:kernel kernel.sym