diff --git a/kernel/Cargo.toml b/kernel/Cargo.toml index ba57b56..4df6d88 100644 --- a/kernel/Cargo.toml +++ b/kernel/Cargo.toml @@ -58,7 +58,7 @@ minimum-image-size = 0 # The minimum output file size (in MiB) # (the "{}" will be replaced with the path to the bootable disk image) run-command = ["qemu-system-x86_64", "-drive", "format=raw,file={}", - "-drive", "format=raw,file=../user/ucore32.img,media=disk,cache=writeback", + "-drive", "format=raw,file=../user/img/ucore-i386-pic.img,media=disk,cache=writeback", "-serial", "mon:stdio", "-device", "isa-debug-exit", "-smp", "4" diff --git a/kernel/Makefile b/kernel/Makefile index 0e1a2e8..2329032 100644 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -30,7 +30,7 @@ bootimage := target/$(target)/bootimage.bin user_bin_path := ../user/target/$(arch)-ucore/debug user_bins := $(patsubst $(user_bin_path)/%.d, $(user_bin_path)/%, $(wildcard $(user_bin_path)/*.d)) user_obj := build/$(arch)/user.o -SFSIMG := ../user/ucore32.img +SFSIMG := ../user/img/ucore-i386-pic.img ### qemu options ### ifeq ($(arch), x86_64) diff --git a/kernel/src/fs.rs b/kernel/src/fs.rs index 9fea7d7..fe38f0c 100644 --- a/kernel/src/fs.rs +++ b/kernel/src/fs.rs @@ -18,7 +18,7 @@ global_asm!(r#" .global _user_img_start .global _user_img_end _user_img_start: - .incbin "../user/user-riscv.img" + .incbin "../user/img/ucore-rv32.img" _user_img_end: "#); diff --git a/user/img/ucore-i386-pic.img b/user/img/ucore-i386-pic.img new file mode 100644 index 0000000..a70e263 Binary files /dev/null and b/user/img/ucore-i386-pic.img differ diff --git a/user/ucore32.img b/user/img/ucore-i386.img similarity index 100% rename from user/ucore32.img rename to user/img/ucore-i386.img diff --git a/user/user-riscv.img b/user/img/ucore-rv32.img similarity index 100% rename from user/user-riscv.img rename to user/img/ucore-rv32.img diff --git a/user/xv6_64.img b/user/img/xv6-x86_64.img similarity index 100% rename from user/xv6_64.img rename to user/img/xv6-x86_64.img