We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed2c6f0 commit 429ba4bCopy full SHA for 429ba4b
riscv-rt/src/lib.rs
@@ -605,8 +605,12 @@
605
//! To use it, the user must define a symbol named `_pre_default_start_trap`, which the system will jump to.
606
//! After executing the custom code, control should return by jumping to `_pre_default_start_trap_ret`.
607
//!
608
+//! It's recommended to place the code in the `.trap.start` section to make sure it's reachable from `_default_start_trap`.
609
+//!
610
//! It is expected that the custom code does not clobber any registers.
611
612
+//! Please note that your code won't be run for interrupts in vectored mode.
613
614
//! ### Example
615
616
//! ```rust,no_run
0 commit comments