ch2: Trap handling

This commit is contained in:
Tateisi 2025-08-03 08:48:14 +08:00
parent 13e91ed735
commit b4c3326d85
13 changed files with 388 additions and 5 deletions

View file

@ -2,12 +2,24 @@
## Build
### in dir `user`
``` bash
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`
``` bash
LOG=TRACE cargo build --release
```
## Run
rustsbi-qemu should be downloaded manually.
``` bash
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
```