From the RP2040 documentation, the Interrupt Clear-Enable Register will clear (disable) all enabled interrupts when written with the or as it currently is in:
https://github.com/ZigEmbeddedGroup/microzig/blob/main/core/src/cpus/cortex_m.zig#L417
This seems to be a pervasive bug assuming this is true across all the cortex_m cpus and multiple register accesses.

From the RP2040 documentation, the Interrupt Clear-Enable Register will clear (disable) all enabled interrupts when written with the or as it currently is in:
https://github.com/ZigEmbeddedGroup/microzig/blob/main/core/src/cpus/cortex_m.zig#L417
This seems to be a pervasive bug assuming this is true across all the cortex_m cpus and multiple register accesses.