Add #![no_main] attribute and Linux entry point

This commit is contained in:
Philipp Oppermann
2019-01-25 12:37:02 +01:00
parent 2f9cbab885
commit a80b09b1ae

View File

@@ -1,8 +1,12 @@
#![no_std] #![no_std]
#![no_main]
use core::panic::PanicInfo; use core::panic::PanicInfo;
fn main() {} #[no_mangle]
pub extern "C" fn _start() -> ! {
loop {}
}
/// This function is called on panic. /// This function is called on panic.
#[panic_handler] #[panic_handler]