Skip to content

Commit

Permalink
Add LTO hint to critical-section-single-core docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sw committed Jan 22, 2025
1 parent 7f99b9a commit 78f7968
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cortex-m/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
//! or critical sections are managed as part of an RTOS. In these cases, you should use
//! a target-specific implementation instead, typically provided by a HAL or RTOS crate.
//!
//! The critical section has been optimized to block interrupts for as few cycles as possible,
//! but -- due to `critical-section` implementation details -- incurs branches in a normal build
//! configuration. For minimal interrupt latency, you can achieve inlining by enabling
//! [linker-plugin-based LTO](https://doc.rust-lang.org/rustc/linker-plugin-lto.html).
//!
//! ## `cm7-r0p1`
//!
//! This feature enables workarounds for errata found on Cortex-M7 chips with revision r0p1. Some
Expand Down

0 comments on commit 78f7968

Please sign in to comment.