We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
preserves_flags
1 parent f0b43a8 commit 010568aCopy full SHA for 010568a
src/instructions/interrupts.rs
@@ -19,7 +19,7 @@ pub fn enable() {
19
// Otherwise, the compiler is free to move
20
// reads and writes through this asm block.
21
unsafe {
22
- asm!("sti", options(nostack));
+ asm!("sti", options(preserves_flags, nostack));
23
}
24
25
@@ -32,7 +32,7 @@ pub fn disable() {
32
// Omit `nomem` to imitate a lock acquire.
33
34
35
- asm!("cli", options(nostack));
+ asm!("cli", options(preserves_flags, nostack));
36
37
38
0 commit comments