Skip to content

Cortex m priority fixes.#587

Merged
mattnite merged 4 commits intoZigEmbeddedGroup:mainfrom
Uthedris:cortex-m-priority
Jun 9, 2025
Merged

Cortex m priority fixes.#587
mattnite merged 4 commits intoZigEmbeddedGroup:mainfrom
Uthedris:cortex-m-priority

Conversation

@Uthedris
Copy link
Contributor

@Uthedris Uthedris commented Jun 7, 2025

Fix two issues:

  1. On the cortex_m the priorities are inverted so 15 is the lowest priority and 0 it the highest. Fixed the enum to reflect this.
  2. When computing the shift the for reading and writing excpetion priorities, the (u4) exception value needs to be upcast to u5 before doing the computation.

@mattnite mattnite enabled auto-merge (squash) June 8, 2025 16:01
@mattnite mattnite merged commit 29b6a29 into ZigEmbeddedGroup:main Jun 9, 2025
44 checks passed
Copper280z pushed a commit to Copper280z/microzig that referenced this pull request Jun 23, 2025
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.

3 participants