Skip to content

Revert "arch: arm: cortex_m: Add API for scb save and restore" #93707

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

mathieuchopstm
Copy link
Contributor

This reverts commit a90a47b.

This commit was written with CMSIS 5 in mind, where some Cortex-M cores have "SHP" in the SCB_Type, and some have "SHPR". This is not correct as Zephyr is supposed to be using CMSIS 6 for Cortex-M... but CI actually picks up CMSIS 5 instead (it includes both with CMSIS 5 taking priority).

The end result is that Zephyr's CI builds this happily but it causes build failures on downstream users (e.g., example-application).

Revert the commit now, as it is not used yet by anyone. The revised version using only "SHPR" shall be reintroduced once the CI issue has been fixed.

See also: #93161 / #93689 / #93699

@mathieuchopstm mathieuchopstm added the Hotfix Fix for issues blocking development, i.e. CI issues, tests failing in CI, etc. label Jul 25, 2025
@zephyrbot zephyrbot added area: Architectures area: ARM ARM (32-bit) Architecture labels Jul 25, 2025
@henrikbrixandersen
Copy link
Member

CC: @msmttchr

This reverts commit a90a47b.

This commit was written with CMSIS 5 in mind, where some Cortex-M cores
have "SHP" in the SCB_Type, and some have "SHPR". This is not correct as
Zephyr is *supposed* to be using CMSIS 6 for Cortex-M... but CI actually
picks up CMSIS 5 instead (it includes both with CMSIS 5 taking priority).

The end result is that Zephyr's CI builds this happily but it causes build
failures on downstream users (e.g., example-application).

Revert the commit now, as it is not used yet by anyone. The revised version
using only "SHPR" shall be reintroduced once the CI issue has been fixed.

Signed-off-by: Mathieu Choplain <[email protected]>
@mathieuchopstm mathieuchopstm force-pushed the revert_scb_bkp_restore branch from cefe797 to 6ce952d Compare July 25, 2025 09:01
Copy link

@henrikbrixandersen henrikbrixandersen requested a review from a team July 25, 2025 09:16
@fabiobaltieri fabiobaltieri merged commit cba9dce into zephyrproject-rtos:main Jul 25, 2025
30 checks passed
@mathieuchopstm mathieuchopstm deleted the revert_scb_bkp_restore branch July 25, 2025 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Architectures area: ARM ARM (32-bit) Architecture Hotfix Fix for issues blocking development, i.e. CI issues, tests failing in CI, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants