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 8252697 commit c0efffdCopy full SHA for c0efffd
src/structures/idt.rs
@@ -898,7 +898,7 @@ bitflags! {
898
/// use x86_64::structures::idt::{InterruptDescriptorTable, InterruptStackFrame};
899
///
900
/// let mut idt = InterruptDescriptorTable::new();
901
-/// fn my_general_handler(
+/// extern "C" fn my_general_handler(
902
/// stack_frame: InterruptStackFrame,
903
/// index: u8,
904
/// error_code: Option<u64>,
@@ -1099,7 +1099,7 @@ mod test {
1099
1100
#[test]
1101
fn default_handlers() {
1102
- fn general_handler(
+ extern "C" fn general_handler(
1103
_stack_frame: InterruptStackFrame,
1104
_index: u8,
1105
_error_code: Option<u64>,
0 commit comments