Skip to content

SpiUtils - explicit asm instead of volatile #9256

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mcspr
Copy link
Collaborator

@mcspr mcspr commented Jun 19, 2025

getting rid of volatile arg(s) is must-have for -std=c++20 and later

provide helper macros to init & load vars at specific points in code
modify existing macros to use c++-style casts & less volatile
change locals to plain non-volatile variables, avoid extra memw

also fixes odd const mask load in (pre_cmd) branch added in #9140
(does not always happen, though. noticed while modifying preamble)

mcspr added 3 commits June 19, 2025 19:28
getting rid of volatile arg(s) is must-have for -std=c++20 and later

provide helper macros to init & load vars at specific points in code
modify existing macros to use c++-style casts & less volatile
change locals to plain non-volatile variables, avoid extra memw

also fixes unintentional const mask load in (pre_cmd) branch
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