Skip to content

Release 0.7.10 - #703

Merged
adamgreig merged 2 commits into
mainfrom
release-0.7.10
Oct 22, 2026
Merged

adamgreig merged 2 commits into
mainfrom
release-0.7.10

Conversation

@adamgreig

Copy link
Copy Markdown
Member

Releases fixes for #702 and #697.

Comment thread cortex-m/src/register/basepri_max.rs Outdated
"it ne",
"bxne lr",
"cpsie i",
"isb",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't think we need ISB here - CPSIE is self synchronising. The only reason to add one would be to ensure any pending interrupts run before the next instruction, but I don't think that matters here.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I understand CPSID is self synchronising but CPSIE is not. Not sure if what synchronisation CPSIE has is sufficient to apply the effects of the MSR or not (or perhaps we should move the ISB to immediately after MSR?).

image

@jonathanpallant jonathanpallant Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ah. Hmm.

I guess the failure mode here is that the next instruction might run before being preempted by a pending exception. That feels OK? The Arm doc does note that CPSIE followed by CPSIE is ok (interrupts will run in the gap between the two).

I think putting the ISB after the MSR makes more sense.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Agreed, I've pushed to move the ISB to just after MSR instead.

Comment thread cortex-m/src/register/basepri.rs Outdated
"it ne",
"bxne lr",
"cpsie i",
"isb",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't think we need ISB here - CPSIE is self synchronising. The only reason to add one would be to ensure any pending interrupts run before the next instruction, but I don't think that matters here.

@adamgreig
adamgreig added this pull request to the merge queue Oct 22, 2026
Merged via the queue into main with commit b79801c Oct 22, 2026
11 checks passed
@adamgreig
adamgreig deleted the release-0.7.10 branch October 22, 2026 19:49
@adamgreig adamgreig mentioned this pull request Oct 25, 2026
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.

2 participants