Skip to content

Commit 083a52f

Browse files
fix: no_mangle should be unsafe
1 parent a61d548 commit 083a52f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opentmk/src/arch/x86_64/interrupt_handler_register.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use x86_64::structures::idt::PageFaultErrorCode;
99
static mut COMMON_HANDLER: fn(InterruptStackFrame, u8) = common_handler;
1010
static COMMON_HANDLER_MUTEX: Mutex<()> = Mutex::new(());
1111

12-
#[no_mangle]
12+
#[unsafe(no_mangle)]
1313
fn abstraction_handle(stack_frame: InterruptStackFrame, interrupt: u8) {
1414
// SAFETY: COMMON_HANDLER is only set via set_common_handler which is protected by a mutex.
1515
unsafe { (COMMON_HANDLER)(stack_frame, interrupt) };

0 commit comments

Comments
 (0)