Compiled on target platform.

This commit is contained in:
Yifan Wu 2020-11-10 23:02:38 +08:00
parent bd24a16cb0
commit 4480790386
6 changed files with 28 additions and 0 deletions

6
os/src/lang_items.rs Normal file
View file

@ -0,0 +1,6 @@
use core::panic::PanicInfo;
#[panic_handler]
fn panic(_info: &PanicInfo) -> ! {
loop {}
}

5
os/src/main.rs Normal file
View file

@ -0,0 +1,5 @@
#![no_std]
#![no_main]
mod lang_items;