Remove unnecessary no_mangle and extern "C" from the panic handler
#[panic_handler] handles all linkage related details.
This commit is contained in:
+1
-2
@@ -6,8 +6,7 @@ use crate::{cpu_id, context, interrupt, syscall};
|
||||
|
||||
/// Required to handle panics
|
||||
#[panic_handler]
|
||||
#[no_mangle]
|
||||
pub extern "C" fn rust_begin_unwind(info: &PanicInfo) -> ! {
|
||||
fn rust_begin_unwind(info: &PanicInfo) -> ! {
|
||||
println!("KERNEL PANIC: {}", info);
|
||||
|
||||
unsafe { interrupt::stack_trace(); }
|
||||
|
||||
Reference in New Issue
Block a user