polyhal/components/boot/
mod.rs

1//! Boot Components.
2//!
3//!
4
5// Define multi-architecture modules and pub use them.
6super::define_arch_mods!();
7
8/// Boot Stack Size.
9/// TODO: reduce the boot stack size. Map stack in boot step.
10pub const STACK_SIZE: usize = 0x8_0000;
11
12/// Boot Stack. Boot Stack Size is [STACK_SIZE]
13#[link_section = ".bss.stack"]
14pub(crate) static mut BOOT_STACK: [u8; STACK_SIZE] = [0; STACK_SIZE];
15
16// Declare the _main_for_arch exists.
17extern "Rust" {
18    pub(crate) fn _main_for_arch(hartid: usize);
19}