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;
|
|
|
|
|
|
|
|
// utils
|
|
|
|
pub mod utils;
|
|
|
|
|
|
|
|
// logging
|
|
|
|
pub mod logging;
|
2023-09-06 22:51:24 +08:00
|
|
|
|