Remove the linkage feature usage for ostd::main

This commit is contained in:
Zhang Junyang
2024-10-04 23:16:19 +08:00
committed by Tate, Hongliang Tian
parent 131a25c15c
commit a716763772
6 changed files with 5 additions and 14 deletions

View File

@ -25,7 +25,7 @@ use unwinding::abi::{
///
/// The user can override it by defining their own panic handler with the macro
/// `#[ostd::panic_handler]`.
#[cfg(not(ktest))]
#[linkage = "weak"]
#[no_mangle]
pub fn __ostd_panic_handler(info: &core::panic::PanicInfo) -> ! {
let _irq_guard = crate::trap::disable_local();