diff --git a/Makefile b/Makefile index 489054c..d22070f 100644 --- a/Makefile +++ b/Makefile @@ -13,6 +13,10 @@ cobj=$(csrc:%.c=%.o) kernel:$(asmobj) $(cobj) linker.ld $(CXX) $(LDFLAGS) $(cobj) $(asmobj) -o $@ -T linker.ld +fd.img: kernel + dd if=/dev/zero of=$@ bs=512 count=2880 + dd if=$< of=$@ conv=notrunc + #https://gcc.gnu.org/onlinedocs/gcc/x86-Function-Attributes.html#x86-Function-Attributes exception_handler.o:exception_handler.c $(CC) $(CPPFLAGS) $(CFLAGS) -mgeneral-regs-only -c $<