tiny_os/kernel/src/main.rs

41 lines
647 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(naked_functions)]
#![feature(panic_info_message)]
#![feature(stmt_expr_attributes)]
// Test Infrastructure
#![feature(custom_test_frameworks)]
#![test_runner(test_runner::runner)]
#![reexport_test_harness_main = "test_main"]
#![cfg_attr(test, allow(dead_code))]
extern crate static_assertions;
// arch
pub mod arch;
// rust language runtime
pub mod lang;
// entrypoint
pub mod entry;
// page table
pub mod mm;
2024-02-15 20:37:48 +08:00
// plat
pub mod plat;
2023-12-29 17:00:48 +08:00
// logging
pub mod logging;
2023-09-06 22:51:24 +08:00
2024-02-15 20:37:48 +08:00
// utils
pub mod utils;
2023-12-29 17:02:01 +08:00
// test infrastructure
#[cfg(test)]
mod test_runner;