tiny_os/kernel/src/main.rs

37 lines
695 B
Rust
Raw Normal View History

2023-12-29 17:00:48 +08:00
// We handle entrypoint in arch
2023-09-06 22:51:24 +08:00
#![no_std]
#![no_main]
2023-12-29 17:00:48 +08:00
// Features
#![feature(asm_const)]
2024-04-23 00:48:46 +08:00
#![feature(cell_update)]
#![feature(concat_idents)]
2024-04-07 01:04:04 +08:00
#![feature(let_chains)]
2023-12-29 17:00:48 +08:00
#![feature(naked_functions)]
#![feature(panic_info_message)]
2024-03-23 21:05:33 +08:00
#![feature(thread_local)]
2023-12-29 17:00:48 +08:00
// Test Infrastructure
#![feature(custom_test_frameworks)]
#![test_runner(test_runner::runner)]
#![reexport_test_harness_main = "test_main"]
// no noisy dead_code warnings
#![allow(dead_code)]
2024-05-06 00:20:44 +08:00
#![allow(clippy::identity_op)]
2023-12-29 17:00:48 +08:00
2024-04-01 16:56:21 +08:00
#[macro_use]
2023-12-29 17:00:48 +08:00
extern crate static_assertions;
2024-03-24 19:12:04 +08:00
mod arch;
mod drivers;
mod entry;
mod lang;
mod logging;
2024-05-19 17:07:29 +08:00
mod objects;
2024-03-24 19:12:04 +08:00
mod plat;
mod root;
2024-04-19 23:45:24 +08:00
mod scheduler;
2024-05-19 01:10:01 +08:00
mod vspace;
2024-02-15 20:37:48 +08:00
2023-12-29 17:02:01 +08:00
// test infrastructure
#[cfg(test)]
mod test_runner;