entry

Macro entry 

Source
macro_rules! entry {
    ($name:path) => { ... };
    ($name:path, $boot_stack_pages:expr) => { ... };
}
Expand description

Marks the main function of the binary and reserves space for the boot stack.

Example:

use aarch64_rt::entry;

entry!(main);
fn main() -> ! {
    info!("Hello world");
}

40 pages (160 KiB) is reserved for the boot stack by default; a different size may be configured by passing the number of pages as a second argument to the macro, e.g. entry!(main, 10); to reserve only 10 pages.