Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
刘丰源 committed Feb 12, 2020
2 parents 5461f93 + 02323c8 commit f658dcd
Show file tree
Hide file tree
Showing 16 changed files with 614 additions and 21 deletions.
6 changes: 5 additions & 1 deletion os/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ $(bin): kernel

asm:
$(objdump) -d $(kernel) | less
assembly:
$(objdump) -d $(kernel) > target/os.asm

build: $(bin)

Expand All @@ -34,6 +36,8 @@ qemu: build
-machine virt \
-nographic \
-bios default \
-device loader,file=$(bin),addr=0x80200000
-device loader,file=$(bin),addr=0x80200000 \
-drive file=../usr/build/riscv64.img,if=none,format=raw,id=x0 \
-device virtio-blk-device,drive=x0,bus=virtio-mmio-bus.0

run: build qemu
1 change: 1 addition & 0 deletions os/src/drivers/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub mod virtio_disk;
Loading

0 comments on commit f658dcd

Please sign in to comment.