// SPDX-License-Identifier: MIT // // Copyright (c) 2018-2019 Andre Richter // Rust embedded logo for `make doc`. #![doc(html_logo_url = "https://git.io/JeGIp")] //! The `kernel` //! //! The `kernel` is composed by glueing together hardware-specific Board Support //! Package (`BSP`) code and hardware-agnostic `kernel` code through the //! [`kernel::interface`] traits. //! //! [`kernel::interface`]: interface/index.html #![feature(asm)] #![feature(format_args_nl)] #![feature(global_asm)] #![feature(panic_info_message)] #![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_entry()`. mod runtime_init; // Conditionally includes the selected `BSP` code. mod bsp; mod interface; mod panic_wait; mod print; /// Entrypoint of the `kernel`. fn kernel_entry() -> ! { println!("Hello from Rust!"); panic!("Stopping here.") }