cpu/fe310: fixes for SW interrupt latency issues#12196
Merged
kaspar030 merged 1 commit intoRIOT-OS:masterfrom Sep 17, 2019
Merged
cpu/fe310: fixes for SW interrupt latency issues#12196kaspar030 merged 1 commit intoRIOT-OS:masterfrom
kaspar030 merged 1 commit intoRIOT-OS:masterfrom
Conversation
Contributor
|
This looks like nice catch! 👍 |
kaspar030
reviewed
Sep 10, 2019
benpicco
reviewed
Sep 10, 2019
Member
|
Just FYI: #12109 has been merged, you need to rebase your PR against master :) |
636220d to
a5ff44d
Compare
Contributor
|
I'd say you can also squash. |
a5ff44d to
547ebd1
Compare
Contributor
Author
|
I tested the changes on both HiFive1 and HiFive1B. Both work fine. |
benpicco
approved these changes
Sep 16, 2019
Contributor
benpicco
left a comment
There was a problem hiding this comment.
This fixes a bug that was present in the initial port to the new platform.
The fix looks good and was tested by the original author of the port.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix for latency in invoking SW interrupt for context switching
Contribution description
FE310 uses a software interrupt to perform a context switch. This interrupt has a latency of 4-7 cycles, which can cause instructions to be executed after
thread_yield_higherleading to unpredictable results. The bug is similar to that found in #8897.Also added core panic support and fixed
cpu_switch_context_exitlogic.Testing procedure
Tested with all tests\thread_* apps
Issues/PRs references
Fixes: #12109
Fixes: #12110