diff options
author | Christian Cunningham <cc@localhost> | 2022-08-17 22:14:15 -0700 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2022-08-17 22:14:15 -0700 |
commit | 91d0ae783e51062f77b120b05c97cd352b9b86d5 (patch) | |
tree | 0270dfe976f91c11e62bb960420b366c08545d6f /src/_arch/arm/cpu/boot.rs |
Initial commit
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() +} |