mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-24 09:53:24 +00:00
Remove the linkage feature usage for ostd::main
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
131a25c15c
commit
a716763772
@ -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();
|
||||
|
Reference in New Issue
Block a user