Skip to content

Commit 980a003

Browse files
committed
fix: specify calling convention for external function declaration
1 parent 52b1ed3 commit 980a003

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pcpu.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ static ORI_EXCEPTION_VECTOR_BASE: usize = 0;
2323
#[percpu::def_percpu]
2424
pub static IRQ_HANDLER: OnceCell<&(dyn Fn() + Send + Sync)> = OnceCell::new();
2525

26-
unsafe extern {
26+
unsafe extern "C" {
2727
fn exception_vector_base_vcpu();
2828
}
2929

0 commit comments

Comments
 (0)