Study rCore for SJTU 网络空间安全教育实践
Find a file
2025-08-03 08:48:14 +08:00
.vscode ch1: Remove std 2025-08-02 13:48:14 +08:00
os ch2: Trap handling 2025-08-03 08:48:14 +08:00
user ch2: Trap handling 2025-08-03 08:48:14 +08:00
LICENSE Add license 2025-08-03 03:06:14 +08:00
README.md ch2: Trap handling 2025-08-03 08:48:14 +08:00

rCore Exercises

Build

in dir user

cargo build --release
rust-objcopy --strip-all target/riscv64gc-unknown-none-elf/release/00_hello_world -O binary target/riscv64gc-unknown-none-elf/release/00_hello_world.bin
...

in dir os

LOG=TRACE cargo build --release

Run

rustsbi-qemu should be downloaded manually.

qemu-system-riscv64 -machine virt -nographic -bios target/riscv64gc-unknown-none-elf/release/rustsbi-qemu.bin -device loader,file=target/riscv64gc-unknown-none-elf/release/os