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

nuttx/arch: remove the custom board check in up_testset implementation #42

Merged
merged 2 commits into from
Dec 30, 2024

Conversation

extinguish
Copy link
Contributor

the up_testset implementation is common code, should not add custom board check

@CLAassistant
Copy link

CLAassistant commented Dec 24, 2024

CLA assistant check
All committers have signed the CLA.

the up_testset implementation is common code, should not add custom
board check

Signed-off-by: guoshichao <[email protected]>
the include/nuttx/spinlock.h#up_testset() function is also controlled by
ARCH_HAVE_TESTSET, so when ARCH_HAVE_CUSTOM_TESTSET is selected by
boards, the include/nuttx/spinlock.h#up_testset() should also not be
build, and using the board specific implementation.
So in this case, if Option ARCH_HAVE_CUSTOM_TESTSET is enabled,
it is assumed that Option ARCH_HAVE_TESTSET is also enabled.
However, when Option ARCH_HAVE_TESTSET is enabled, it doesn't necessarily
mean that Option ARCH_HAVE_CUSTOM_TESTSET is also enabled.
In this way, it can be ensured that the implementation under the
include/nuttx/spinlock.h#up_testset can also be controlled by
Option ARCH_HAVE_CUSTOM_TESTSET.

Signed-off-by: guoshichao <[email protected]>
@xiaoxiang781216 xiaoxiang781216 merged commit e4dd571 into open-vela:dev Dec 30, 2024
3 checks passed
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.

4 participants