Skip to content

macros: add lowcode arg to interrupt for opting out of .highcode - #24

Merged
aq1018 merged 1 commit into
mainfrom
lowcode-interrupt-opt-out
Jun 16, 2026
Merged

macros: add lowcode arg to interrupt for opting out of .highcode#24
aq1018 merged 1 commit into
mainfrom
lowcode-interrupt-opt-out

Conversation

@aq1018

@aq1018 aq1018 commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Adds a lowcode arg to #[interrupt] so individual handlers can opt out of .highcode (RAM) placement when the highcode feature is enabled. Body and trampoline land in .text.{NAME} (flash) instead of .trap.rust; the linker's existing *(.text .text.*) catches both. Composes with core. No-op when the highcode feature is off.

Motivation: on small-SRAM chips (e.g. V006, 8 KB), having every #[interrupt] forced into .highcode consumes RAM that's only justified for hot path handlers.

No linker-script changes. No breaking changes to existing #[interrupt] / #[interrupt(core)] usage.

@aq1018
aq1018 merged commit fbe3a51 into main Jun 16, 2026
1 check passed
@aq1018
aq1018 deleted the lowcode-interrupt-opt-out branch June 16, 2026 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant