mirror of
https://github.com/LearningOS/rust-based-os-comp2022.git
synced 2026-07-11 06:56:08 +08:00
15 lines
285 B
Rust
15 lines
285 B
Rust
#![no_std]
|
|
#![no_main]
|
|
|
|
extern crate user_lib;
|
|
|
|
/// 由于 rustsbi 的问题,该程序无法正确退出
|
|
/// > rustsbi 0.2.0-alpha.1 已经修复,可以正常退出
|
|
|
|
#[no_mangle]
|
|
pub fn main() -> ! {
|
|
unsafe {
|
|
core::arch::asm!("sret");
|
|
}
|
|
panic!("FAIL: T.T\n");
|
|
} |