ch2: Trap handling
This commit is contained in:
parent
13e91ed735
commit
b4c3326d85
13 changed files with 388 additions and 5 deletions
12
README.md
12
README.md
|
@ -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
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue