Skip to content

device/arm: clear pending interrupts before enabling them #4849

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

Merged
merged 1 commit into from
Apr 16, 2025

Conversation

eliasnaur
Copy link
Contributor

Without this change, a pending interrupt would spuriously trigger immediately after enabling. This happens if an interrupt is triggered during flashing (e.g. by DMA), which survives the subsequent reset.

This behaviour matches e.g. machine.irqSet in machine_rp2_rp2350.go.

See 7f970a4, whose symptoms were likely caused by spurious interrupts.

Without this change, a pending interrupt would spuriously trigger
immediately after enabling. This happens if an interrupt is triggered
during flashing (e.g. by DMA), which survives the subsequent reset.

This behaviour matches e.g. `machine.irqSet` in machine_rp2_rp2350.go.

See 7f970a4, whose symptoms were likely caused by spurious interrupts.
@eliasnaur eliasnaur requested a review from aykevl April 12, 2025 15:11
@deadprogram
Copy link
Member

Pinging @aykevl and @soypat for review, please.

Copy link
Contributor

@soypat soypat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for the contrib (thats what the kids call it nowadays)

@deadprogram
Copy link
Member

Now merging, thanks for working on this @eliasnaur and to @soypat for review.

@deadprogram deadprogram merged commit 0f06f59 into tinygo-org:dev Apr 16, 2025
22 of 23 checks passed
@eliasnaur eliasnaur deleted the push-vxtmoymmrkwp branch April 16, 2025 08:18
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.

3 participants