Skip to content

Commit

Permalink
fix(kernel): fix panic handler function signature
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Andy-Python-Programmer committed Sep 29, 2023
1 parent 6658f8e commit c63e036
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aero_kernel/src/unwind.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ use crate::emu;
use crate::utils::sync::IrqGuard;

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

let default_panic = &format_args!("");
Expand Down

0 comments on commit c63e036

Please sign in to comment.