We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e07d7a commit ec65a22Copy full SHA for ec65a22
src/instructions/interrupts.rs
@@ -154,6 +154,12 @@ pub fn int3() {
154
}
155
156
/// Generate a software interrupt by invoking the `int` instruction.
157
+///
158
+/// ## Safety
159
+/// Invoking an arbitrary interrupt is unsafe. It can cause your system to
160
+/// crash if you invoke a double-fault (#8) or machine-check (#18) exception.
161
+/// It can also cause memory/register corruption depending on the interrupt
162
+/// implementation (if it expects values/pointers to be passed in registers).
163
#[inline]
164
#[cfg(feature = "inline_asm")]
165
pub unsafe fn software_interrupt<const ID: u8>() {
0 commit comments