tiny_os/kernel/src/main.rs

37 lines
727 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)]
#![feature(concat_idents)]
2024-04-04 19:28:21 +08:00
#![feature(const_mut_refs)]
2024-03-23 16:45:24 +08:00
#![feature(extern_types)]
2024-04-09 01:11:54 +08:00
#![feature(fn_align)]
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)]
#![feature(stmt_expr_attributes)]
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)]
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;
mod objects;
mod plat;
2024-04-19 23:45:24 +08:00
mod scheduler;
2024-02-15 20:37:48 +08:00
2023-12-29 17:02:01 +08:00
// test infrastructure
#[cfg(test)]
mod test_runner;