diff options
Diffstat (limited to 'src/_arch/arm/cpu/boot.rs')
-rw-r--r-- | src/_arch/arm/cpu/boot.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/_arch/arm/cpu/boot.rs b/src/_arch/arm/cpu/boot.rs new file mode 100644 index 0000000..9ea2330 --- /dev/null +++ b/src/_arch/arm/cpu/boot.rs @@ -0,0 +1,12 @@ +//! Architectural boot code +//! # Boot code for ARM +//! crate::cpu::boot::arch_boot + +use core::arch::global_asm; +global_asm!(include_str!("boot.s")); + +/// The Rust entry of the `kernel` binary. +#[no_mangle] +pub unsafe fn _start_rust() -> ! { + crate::kernel_init() +} |