You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
811 B
Rust
28 lines
811 B
Rust
// SPDX-License-Identifier: MIT OR Apache-2.0
|
|
//
|
|
// Copyright (c) 2021 Andre Richter <andre.o.richter@gmail.com>
|
|
|
|
//! Architectural boot code.
|
|
//!
|
|
//! # Orientation
|
|
//!
|
|
//! Since arch modules are imported into generic modules using the path attribute, the path of this
|
|
//! file is:
|
|
//!
|
|
//! crate::cpu::boot::arch_boot
|
|
|
|
// Assembly counterpart to this file.
|
|
core::arch::global_asm!(include_str!("boot.s"));
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
// Public Code
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
/// The Rust entry of the `kernel` binary.
|
|
///
|
|
/// The function is called from the assembly `_start` function.
|
|
#[no_mangle]
|
|
pub unsafe fn _start_rust() -> ! {
|
|
crate::kernel_init()
|
|
}
|