Skip to content

Commit c0efffd

Browse files
committed
using C calling convention for general handlers
1 parent 8252697 commit c0efffd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/structures/idt.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ bitflags! {
898898
/// use x86_64::structures::idt::{InterruptDescriptorTable, InterruptStackFrame};
899899
///
900900
/// let mut idt = InterruptDescriptorTable::new();
901-
/// fn my_general_handler(
901+
/// extern "C" fn my_general_handler(
902902
/// stack_frame: InterruptStackFrame,
903903
/// index: u8,
904904
/// error_code: Option<u64>,
@@ -1099,7 +1099,7 @@ mod test {
10991099

11001100
#[test]
11011101
fn default_handlers() {
1102-
fn general_handler(
1102+
extern "C" fn general_handler(
11031103
_stack_frame: InterruptStackFrame,
11041104
_index: u8,
11051105
_error_code: Option<u64>,

0 commit comments

Comments
 (0)