-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Test arch arm thread swap minor fix #19310
Test arch arm thread swap minor fix #19310
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this. Please fix the preprocessor whitespace issue. I would go with the code change, but there may be subtleties I'm not seeing so that's just a suggestion.
We use inline assembly to store the return value of _swap(..) function directly into r0 (in order to ensure that r4-r11 registers are not touched at this point). But we need to store the r0 into some global memory, to retain the value until we check it later in an assert expression, otherwise the compiler may overwrite r0 in subsequent instructions. Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
The commit fixes two assert expressions in the test, which evaluate the return value of _swap(.) function and the value of the thread's swap return variable. Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
cd7e38e
to
45bd788
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The original (and patched) version passed under #18991 so this should be good. Thanks. |
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub.
git fetch
# Create new working tree.
git worktree add .worktrees/backport v1.14-branch
# Navigate to the new directory.
cd .worktrees/backport
# Cherry-pick all the commits of this pull request and resolve the likely conflicts.
git cherry-pick 45bd788059e1225571909911772bdb6de95f508e 7f47cf7bc055df69e4f113f6fa83d3a9d2898c6c
# Create a new branch with these backported commits.
git checkout -b backport-19310-to-v1.14-branch
# Push it to GitHub.
git push --set-upstream origin backport-19310-to-v1.14-branch
# Go back to the original working tree.
cd ../..
# Delete the working tree.
git worktree remove .worktrees/backport Then, create a pull request where the |
Fixes a bug in erroneous zassert expression in arm thread swap test suite
Fixes #18999