File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 452452//! ```
453453//!
454454//! This will generate a function named `_start_MachineTimer_trap` that calls the interrupt handler `MachineTimer`.
455+ //!
456+ //! ## `u-boot`
457+ //!
458+ //! The u-boot support feature (`u-boot`) can be activated via [Cargo features](https://doc.rust-lang.org/cargo/reference/features.html).
459+ //!
460+ //! For example:
461+ //! ``` text
462+ //! [dependencies]
463+ //! riscv-rt = { features = ["u-boot"] }
464+ //! ```
465+ //! When the u-boot feature is enabled, some assembly code is disabled to leave stack untouched. This is required
466+ //! because when booting from elf, u-boot passes arguments as argc and argv through stack. Because the only way
467+ //! to get boot-hart is through fdt, this feature also implies `single-hart` so other harts initialization
468+ //! is up to you.
455469
456470// NOTE: Adapted from cortex-m/src/lib.rs
457471#![ no_std]
You can’t perform that action at this time.
0 commit comments