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.
35 lines
778 B
Rust
35 lines
778 B
Rust
// SPDX-License-Identifier: MIT OR Apache-2.0
|
|
//
|
|
// Copyright (c) 2018-2019 Andre Richter <andre.o.richter@gmail.com>
|
|
|
|
// Rust embedded logo for `make doc`.
|
|
#![doc(html_logo_url = "https://git.io/JeGIp")]
|
|
|
|
//! The `kernel`
|
|
|
|
#![feature(asm)]
|
|
#![feature(global_asm)]
|
|
#![no_main]
|
|
#![no_std]
|
|
|
|
// Conditionally includes the selected `architecture` code, which provides the `_start()` function,
|
|
// the first function to run.
|
|
mod arch;
|
|
|
|
// `_start()` then calls `runtime_init::init()`, which on completion, jumps to `kernel_init()`.
|
|
mod runtime_init;
|
|
|
|
// Conditionally includes the selected `BSP` code.
|
|
mod bsp;
|
|
|
|
mod panic_wait;
|
|
|
|
/// Early init code.
|
|
///
|
|
/// # Safety
|
|
///
|
|
/// - Only a single core must be active and running this function.
|
|
unsafe fn kernel_init() -> ! {
|
|
panic!()
|
|
}
|