Skip to content
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

board_reset.cpp: Hartid must be read with local interrupts disabled #845

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

pussuw
Copy link

@pussuw pussuw commented Dec 17, 2024

We cannot allow the running task to switch to another CPU after reading hartid, otherwise we will use a stale value. Fix this by reading hartid after disabling local interrupts.

We cannot allow the running task to switch to another CPU after reading
hartid, otherwise we will use a stale value. Fix this by reading hartid
after disabling local interrupts.
@pussuw pussuw requested a review from jlaitine December 17, 2024 11:59
@pussuw pussuw merged commit 32b328a into main Dec 17, 2024
27 checks passed
@pussuw pussuw deleted the board_reset_fix branch December 17, 2024 22:21
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