From 91d0ae783e51062f77b120b05c97cd352b9b86d5 Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Wed, 17 Aug 2022 22:14:15 -0700 Subject: Initial commit --- src/_arch/arm/cpu/boot.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/_arch/arm/cpu/boot.rs (limited to 'src/_arch/arm/cpu/boot.rs') 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() +} -- cgit v1.2.1