Skip to content

Commit c63e036

Browse files
fix(kernel): fix panic handler function signature
The panic handler needs to be an extern "Rust" function not a extern "C" function. This commit fixes that by making the panic handler a normal function. Signed-off-by: Anhad Singh <[email protected]>
1 parent 6658f8e commit c63e036

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/aero_kernel/src/unwind.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ use crate::emu;
160160
use crate::utils::sync::IrqGuard;
161161

162162
#[panic_handler]
163-
extern "C" fn rust_begin_unwind(info: &PanicInfo) -> ! {
163+
fn rust_begin_unwind(info: &PanicInfo) -> ! {
164164
prepare_panic();
165165

166166
let default_panic = &format_args!("");

0 commit comments

Comments
 (0)