Skip to content

board/arm/nrf52: fix use up_interrupt_context to is_nesting_interrupt#13895

Merged
xiaoxiang781216 merged 2 commits into
apache:masterfrom
jasonbu:nrf52840
Oct 8, 2024
Merged

board/arm/nrf52: fix use up_interrupt_context to is_nesting_interrupt#13895
xiaoxiang781216 merged 2 commits into
apache:masterfrom
jasonbu:nrf52840

Conversation

@jasonbu

@jasonbu jasonbu commented Oct 8, 2024

Copy link
Copy Markdown
Contributor

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
Comment thread boards/arm/nrf52/nrf52840-dk/src/nrf52_highpri.c Outdated
Comment thread boards/arm/nrf52/nrf52840-dk/src/nrf52_highpri.c
@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

raiden00pl commented Oct 8, 2024

Copy link
Copy Markdown
Member

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 <buxiasen@xiaomi.com>
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 <buxiasen@xiaomi.com>
@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

jasonbu commented Oct 8, 2024

Copy link
Copy Markdown
Contributor Author

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
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