diff --git a/Makefile b/Makefile index ad861ea..76dc8f4 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ QEMU=qemu-system-riscv32 # Compiler and flags CC=clang OBJCOPY=llvm-objcopy -CFLAGS=-std=c11 -O2 -g3 -Wall -Wextra --target=riscv32 -ffreestanding -nostdlib -I include +CFLAGS=-std=c11 -fuse-ld=lld -O2 -g3 -Wall -Wextra --target=riscv32 -ffreestanding -nostdlib -I include # Source folders KERNEL_SRC=kernel @@ -51,4 +51,4 @@ disk.tar: $(wildcard disk/*) clean: rm -f $(BUILD_DIR)/*.bin $(BUILD_DIR)/*.elf $(BUILD_DIR)/*.o $(BUILD_DIR)/*.map -.PHONY: all run clean \ No newline at end of file +.PHONY: all run clean diff --git a/run.sh b/run.sh index bf1ddaf..571cfa6 100755 --- a/run.sh +++ b/run.sh @@ -6,6 +6,6 @@ QEMU=qemu-system-riscv32 # run QEMU ${QEMU} -machine virt -bios default -nographic -serial mon:stdio --no-reboot \ - -drive id=drive0,file=disk.tar,format=raw \ + -drive id=drive0,file=disk.tar,format=raw,if=none \ -device virtio-blk-device,drive=drive0,bus=virtio-mmio-bus.0 \ -kernel kernel.elf