3
3
4
4
# ` riscv-semihosting `
5
5
6
- > Semihosting for RISC-V processors
6
+ > Simple semihosting for RISC-V processors
7
7
8
8
This is a fork of the
9
- [ cortex-m-semihosting] ( https://docs.rs/cortex-m-semihosting ) crate with changes
9
+ [ ` cortex-m-semihosting ` ] crate with changes
10
10
to support the RISC-V Semihosting Specification as documented
11
11
[ here] ( https://github.com/riscv/riscv-semihosting-spec/blob/main/riscv-semihosting-spec.adoc )
12
12
@@ -23,6 +23,15 @@ to execute the semihosting operation in an interrupt-free context, while
23
23
* user-mode (U-mode)* causes them to just execute the operation.
24
24
By default, M-mode is used. You can activate the U-mode via the ` u-mode ` feature.
25
25
26
+ # About the [ ` semihosting ` ] crate
27
+
28
+ ` riscv-semihosting ` provides a simple semihosting API that matches [ ` cortex-m-semihosting ` ] .
29
+ This allows a simple port from Cortex-M applications to RISC-V applications.
30
+ However, the [ ` semihosting ` ] crate presents a more advanced interface that is compatible
31
+ for RISC-V as well as other architectures (e.g., ARM or MIPS).
32
+ While ` riscv-semihosting ` is a good starting point for developing semihosted applications,
33
+ ** we recommend using the [ ` semihosting ` ] crate.**
34
+
26
35
27
36
# Minimum Supported Rust Version (MSRV)
28
37
@@ -59,3 +68,5 @@ to intervene to uphold that code of conduct.
59
68
60
69
[ CoC ] : ../CODE_OF_CONDUCT.md
61
70
[ team ] : https://github.com/rust-embedded/wg#the-risc-v-team
71
+ [ `semihosting` ] : https://crates.io/crates/semihosting
72
+ [ `cortex-m-semihosting` ] : https://docs.rs/cortex-m-semihosting
0 commit comments