mirror of
https://github.com/rjNemo/rouille_os
synced 2026-06-06 02:26:46 +00:00
overwrite entry point
This commit is contained in:
parent
4cc1eecd56
commit
23e5a4e35a
1 changed files with 8 additions and 2 deletions
10
src/main.rs
10
src/main.rs
|
|
@ -1,8 +1,14 @@
|
|||
#![no_std]
|
||||
|
||||
#![no_main]
|
||||
use core::panic::PanicInfo;
|
||||
|
||||
fn main() {}
|
||||
/// Disabling mangling ensures the compiler returns a function named `_start`
|
||||
///
|
||||
/// We tell the compiler to use `C calling convention`
|
||||
#[no_mangle]
|
||||
pub extern "C" fn _start() -> ! {
|
||||
loop {}
|
||||
}
|
||||
/// Function called on panic. It is a diverging function with a `never` return type.
|
||||
///
|
||||
/// # Arguments
|
||||
|
|
|
|||
Loading…
Reference in a new issue