aboutsummaryrefslogtreecommitdiff
path: root/src/_arch/arm/cpu/boot.rs
blob: b81a16a8e65280cf03638b4f5f8456783c80a7ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//! # Architectural boot code
//!
//! crate::cpu::boot::arch_boot
//!
//! ## Boot code for ARM
//!
//! Provides the initial handoff
//! function from Assembly to Rust.

use core::arch::global_asm;
global_asm!(include_str!("boot.s"));

/// # Rust entry of the `kernel` binary.
///
/// This function is unmangled so that the
/// ASM boot code can switch to Rust safely.
#[no_mangle]
pub unsafe fn _start_rust() -> ! {
    crate::kernel_init()
}