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.
1 parent c618de4 commit d95f292Copy full SHA for d95f292
1 file changed
src/instructions/interrupts.rs
@@ -13,6 +13,10 @@ pub fn are_enabled() -> bool {
13
/// Enable interrupts.
14
///
15
/// This is a wrapper around the `sti` instruction.
16
+///
17
+/// This function executes `sti; nop` to ensure that the interrupt shadow
18
+/// caused by the `sti` instruction doesn't last beyond this function.
19
+/// Use [`enable_and_hlt`] to execute `hlt` in `sti`'s interrupt shadow.
20
#[inline]
21
pub fn enable() {
22
// Omit `nomem` to imitate a lock release. Otherwise, the compiler
0 commit comments