Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
.PHONY: all run clean
2 changes: 1 addition & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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