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

arch/risc-v/src/mpfs/mpfs_plic.c: Add spinlock to irq_enable/disable #360

Merged
merged 1 commit into from
Feb 20, 2025

Conversation

jlaitine
Copy link

A driver may e.g. call up_disable_irq from within an interrupt. If this happens during enabling interrupts, the interrupts are left unexpectedly enabled.

A driver may e.g. call up_disable_irq from within an interrupt.
If this happens during enabling interrupts, the interrupts are left unexpectedly enabled.

Signed-off-by: Jukka Laitinen <[email protected]>
@jlaitine jlaitine force-pushed the fix_irq_enable_disable_race_in_smp branch from 9f04fa7 to 2205068 Compare February 20, 2025 09:19
Copy link

@pussuw pussuw left a comment

Choose a reason for hiding this comment

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

Neat!

@jlaitine jlaitine merged commit f135db2 into master Feb 20, 2025
10 checks passed
@jlaitine jlaitine deleted the fix_irq_enable_disable_race_in_smp branch February 20, 2025 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants