mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-25 02:13:24 +00:00
Implement OSDK functionalities and opt-in OSDK for asterinas
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
bc9bce9dea
commit
f97d0f1260
12
osdk/src/base_crate/main.rs.template
Normal file
12
osdk/src/base_crate/main.rs.template
Normal file
@ -0,0 +1,12 @@
|
||||
#![no_std]
|
||||
#![no_main]
|
||||
|
||||
extern crate #TARGET_NAME#;
|
||||
|
||||
#[panic_handler]
|
||||
fn panic(info: &core::panic::PanicInfo) -> ! {
|
||||
extern "Rust" {
|
||||
pub fn __aster_panic_handler(info: &core::panic::PanicInfo) -> !;
|
||||
}
|
||||
unsafe { __aster_panic_handler(info); }
|
||||
}
|
Reference in New Issue
Block a user