汪功博

Results 3 comments of 汪功博

运行 make run 报下面的错误,不知道 opensbi-riscv64-virt-fw_jump.bin 这个文件是哪里来的 ``` Finished dev [unoptimized + debuginfo] target(s) in 0.71s rust-objcopy --binary-architecture=riscv64 target/riscv64imac-unknown-none-elf/debug/os --strip-all -O binary target/riscv64imac-unknown-none-elf/debug/kernel.bin qemu-system-riscv64 \ -machine virt \ -nographic \ -bios...

> @qwtsc > rustup 2020-05-24 nightly 编译不了asm! 替换成llvm_asm!才能给过(包括修改feature) 同学可以把命令写的更详细一点吗, 我改成了这样也还是一样不行。 ➜ os git:(ch2-pa5) ✗ rustc -v -V rustc 1.45.0-nightly (46e85b432 2020-05-24) binary: rustc commit-hash: 46e85b4328fe18492894093c1092dfe509df4370 commit-date: 2020-05-24 host: x86_64-apple-darwin release:...

@qwtsc 谢谢, 可以了。 我把答案总结再整理下, 1. 把 main.rs 第4行的 #![feature(asm)] 改成 #![feature(llvm_asm)] 2. 把main.rs 第27行的 asm!("ecall" 改成 llvm_asm!("ecall"