Skip to content

Multicore aware semaphore for rp2xxx #444

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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Uthedris
Copy link
Contributor

@Uthedris Uthedris commented Apr 14, 2025

The current critical section code in microzig.intterrupt only disables interrupts, it does not block code running on another core from altering protected resources.

This code attempt to address this by both blocking interrupts and providing a mechanism to block other cores from entering.

@Grazfather
Copy link
Collaborator

Looks good. Should this go into enter_critical_section? We'd want this for other ports (that are multicore) as well, but could make those nop for now.

This is probably worth discussing more on discord, if you're not already on there I'd ask you join.

@Uthedris
Copy link
Contributor Author

I joined the discord group. Also made some changes to integrate with enter_critical_section.

@Uthedris
Copy link
Contributor Author

Uthedris commented Apr 16, 2025

Same errors here as the other PR. I don't think it's something I did as other PRs are getting them too.

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