-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Tests arch arm swap #17423
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
Tests arch arm swap #17423
Conversation
All checks are passing now. Review history of this comment for details about previous failed status. |
fd10b5c
to
60d26b0
Compare
@pizi-nordic what do you think about this functional test for the arm swap routine? Any early feedback is appreciated |
Have a look at #17456, it should fix the compiler warning. |
IMHO what is missing is a high level description of the idea behind the test. |
60d26b0
to
7eafdd7
Compare
Do you think I sould add a README? Or an intro paragraph in the test source file? |
7eafdd7
to
a62390e
Compare
Just comment in the file. It might be also in emphasized comment in function like this:
|
I already added a README description, @pizi-nordic , please, take a look. |
a62390e
to
fc0d00b
Compare
@pizi-nordic @SebastianBoe could you do another (hopefully) quick review round? |
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.
Place consider adding irq_lock() around all code except places where you should be pre-empted.
Done, as well, thanks @pizi-nordic for reviewing. |
fc0d00b
to
19ea3db
Compare
This commit contributes a test for the ARM swap, i.e. the context-switch mechanism for the ARM architecture. The test verifies that the thread state variables are set and checked properly when performing a thread swap-out and swap-in. Signed-off-by: Ioannis Glaropoulos <[email protected]>
We add a test-case for arch/arm/thread_swap, so the test is executed with CONFIG_FLOAT/CONFIG_FP_SHARING being enabled, if an FPU is available. We execute the test extension with/without enabling compiler optimizations. Signed-off-by: Ioannis Glaropoulos <[email protected]>
The commit adds a README file with a description of the test. Signed-off-by: Ioannis Glaropoulos <[email protected]>
Assigning a code-owner for all tests under tests/arch/arm. Signed-off-by: Ioannis Glaropoulos <[email protected]>
19ea3db
to
655e7f8
Compare
A coverage test for the ARM thread swap mechanism.
Covers:
Currently rebased on top of #17456