Skip to content

fix: use mstatus.MIE for critical_section on qingke_v2#16

Merged
andelf merged 1 commit intomainfrom
fix/qingke-v2
Dec 8, 2025
Merged

fix: use mstatus.MIE for critical_section on qingke_v2#16
andelf merged 1 commit intomainfrom
fix/qingke-v2

Conversation

@andelf
Copy link
Copy Markdown
Contributor

@andelf andelf commented Dec 8, 2025

CH32V003 (qingke_v2) does not have gintenr register (CSR 0x800). Use standard RISC-V mstatus.MIE instead for critical section implementation.

Also add #[cfg(not(qingke_v2))] to gintenr module to prevent misuse.

Fixes #15

CH32V003 (qingke_v2) does not have gintenr register (CSR 0x800).
Use standard RISC-V mstatus.MIE instead for critical section implementation.

Also add #[cfg(not(qingke_v2))] to gintenr module to prevent misuse.

Fixes #15
@andelf andelf merged commit a8c5690 into main Dec 8, 2025
1 check passed
@andelf andelf deleted the fix/qingke-v2 branch December 8, 2025 13:43
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.

Critical section implementation does not work on CH32V003

1 participant