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/arm/nrf52: fix use up_interrupt_context to is_nesting_interrupt #13895

Merged
merged 2 commits into from
Oct 8, 2024

Conversation

jasonbu
Copy link
Contributor

@jasonbu jasonbu commented Oct 8, 2024

Summary

The case want to determine if a interrupt with higher priority the interrupt preemption occurred,
but up_interrupt_context indicates that we self inside interrupt/handedr mode.
As we previously did not handle the ramvector interrupt correctly, after update breaked the case.
We should use a more clear private function is_nesting_interrupt.

#13831

Impact

No impact as we only changed the case in nrf52_highpri.
Maybe further patch should keep the api up_current_regs.

Testing

CI-test

@github-actions github-actions bot added Area: Board support Board support issues Size: XS The size of the change in this PR is very small labels Oct 8, 2024
@jasonbu jasonbu mentioned this pull request Oct 8, 2024
1 task
@jasonbu jasonbu changed the title board/arm/nrf52: fix use up_interrupt_context to do parent_in_interrupt board/arm/nrf52: fix use up_interrupt_context to is_nesting_interrupt Oct 8, 2024
@raiden00pl
Copy link
Contributor

raiden00pl commented Oct 8, 2024

this PR fixes #13831
Please update also boards/arm/stm32/viewtool-stm32f107/src/stm32_highpri.c

The case want to determine if a interrupt with higher priority and the
interrupt preemption occurred, but up_interrupt_context indicates that we
self inside interrupt/handler mode. As we previously did not handle the
ramvector interrupt correctly, after update breaked the case. We should
use a more clear private function is_nesting_interrupt.

Signed-off-by: buxiasen <[email protected]>
up_interrupt_context indicates that we self inside interrupt/handler mode,
replaced to private function is_nesting_interrupt to make less confused.

Signed-off-by: buxiasen <[email protected]>
@github-actions github-actions bot added Size: S The size of the change in this PR is small and removed Size: XS The size of the change in this PR is very small labels Oct 8, 2024
@jasonbu
Copy link
Contributor Author

jasonbu commented Oct 8, 2024

this PR fixes #13831 Please update also boards/arm/stm32/viewtool-stm32f107/src/stm32_highpri.c

append a commit in this patch, please review,
Only self-tested with compiled pass.

@raiden00pl raiden00pl linked an issue Oct 8, 2024 that may be closed by this pull request
1 task
@xiaoxiang781216 xiaoxiang781216 merged commit 846cb7d into apache:master Oct 8, 2024
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Board support Board support issues Size: S The size of the change in this PR is small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] highpri examples are broken
5 participants