2021-11-21 02:13:50 -06:00
|
|
|
//! hi
|
|
|
|
|
2021-11-16 00:09:27 -06:00
|
|
|
#![no_std]
|
|
|
|
// #![deny(warnings)]
|
|
|
|
#![feature(asm)]
|
|
|
|
#![feature(global_asm)]
|
|
|
|
#![feature(abi_x86_interrupt)]
|
|
|
|
#![feature(core_intrinsics, lang_items, llvm_asm)]
|
|
|
|
// #![feature(alloc_error_handler)] // at the top of the file
|
|
|
|
#![reexport_test_harness_main = "test_main"]
|
|
|
|
#![feature(custom_test_frameworks)]
|
|
|
|
#![test_runner(crate::arch::test_runner)]
|
2021-11-17 08:42:54 -06:00
|
|
|
#![feature(naked_functions)]
|
2021-11-16 00:09:27 -06:00
|
|
|
#[cfg(target_arch = "arm")]
|
|
|
|
#[path = "arch/aarch32/mod.rs"]
|
|
|
|
mod arch;
|
|
|
|
|
|
|
|
#[cfg(target_arch = "aarch64")]
|
|
|
|
#[path = "arch/aarch64/mod.rs"]
|
|
|
|
mod arch;
|
|
|
|
|
|
|
|
#[cfg(target_arch = "x86_64")]
|
|
|
|
#[path = "arch/x86_64/mod.rs"]
|
|
|
|
mod arch;
|
2021-11-17 08:42:54 -06:00
|
|
|
#[cfg(target_arch = "riscv64")]
|
|
|
|
#[path = "arch/riscv/mod.rs"]
|
2021-11-16 00:09:27 -06:00
|
|
|
mod arch;
|
|
|
|
#[macro_use]
|
|
|
|
pub mod print;
|
2021-11-17 08:42:54 -06:00
|
|
|
|
|
|
|
use arch::drivers::serial;
|
|
|
|
|
|
|
|
mod driver_traits;
|
|
|
|
mod experiments;
|
2021-11-16 00:09:27 -06:00
|
|
|
mod kmain;
|
|
|
|
mod panic;
|
|
|
|
pub use experiments::server;
|
|
|
|
pub mod keyboard;
|
|
|
|
pub mod relib;
|