Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/).

## [Unreleased]

- Add `#[used]` to the generated interrupt vector table statics so they are not
dropped by the linker with lto
- Improve documentation for RISC-V settings file
- Use marker struct instead of address in `Periph` with `PeripheralSpec` trait
- Add `--skip-peripherals-struct` flag to skip generating the `Peripherals`
Expand Down
3 changes: 3 additions & 0 deletions src/generate/interrupt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ pub fn render(
#[doc(hidden)]
#link_section_attr
#nomangle
#[used]
pub static __INTERRUPTS: [Vector; #num_of_interrupts] = [
#elements
];
Expand Down Expand Up @@ -228,6 +229,7 @@ pub fn render(
#[doc(hidden)]
#link_section_attr
#nomangle
#[used]
pub static __EXTERNAL_INTERRUPTS: [Vector; #num_of_interrupts] = [
#elements
];
Expand Down Expand Up @@ -263,6 +265,7 @@ pub fn render(
#[doc(hidden)]
#link_section_attr
#nomangle
#[used]
pub static __INTERRUPTS: [Vector; #num_of_interrupts] = [
#elements
];
Expand Down
Loading