Skip to content

Conversation

@folkertdev
Copy link

@folkertdev folkertdev commented Nov 24, 2025

Support for the cmse-nonsecure-entry and cmse-nonsecure-call calling conventions on ArmV8m (thumbv8*) targets, and a lint preventing (partially) uninitialized values from crossing the security boundary.

extern "cmse-nonsecure-entry" fn entry(callback: extern "cmse-nonsecure-call" fn(_: u64)) { 
    callback(42);
}

The implementation is tracked in:

Important

When responding to RFCs, try to use inline review comments (it is possible to leave an inline review comment for the entire file at the top) instead of direct comments for normal comments and keep normal comments for procedural matters like starting FCPs.

This keeps the discussion more organized.

@rustbot label +T-lang

Rendered

@rustbot rustbot added the T-lang Relevant to the language team, which will review and decide on the RFC. label Nov 24, 2025
@folkertdev folkertdev changed the title RCF for CMSE calling conventions RFC for CMSE calling conventions Nov 24, 2025
@folkertdev folkertdev force-pushed the cmse-calling-conventions branch from f30d3be to 21f5b58 Compare November 24, 2025 12:14
@folkertdev folkertdev changed the title RFC for CMSE calling conventions CMSE calling conventions Nov 24, 2025
Copy link

@thejpster thejpster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had one quibble with the architecture terminology, but everything else looks good to me.

Co-authored-by: Jonathan 'theJPster' Pallant <github@thejpster.org.uk>
@folkertdev
Copy link
Author

This has now been reviewed by several people from the rust embedded community and from Arm, so I think this is ready for T-lang to take a look.

@rustbot label +I-lang-nominated

@rustbot rustbot added the I-lang-nominated Indicates that an issue has been nominated for prioritizing at the next lang team meeting. label Nov 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

I-lang-nominated Indicates that an issue has been nominated for prioritizing at the next lang team meeting. T-lang Relevant to the language team, which will review and decide on the RFC.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants