hal_x86_64/
lib.rs

1//! Implementation of the Mycelium HAL for 64-bit x86 platforms.
2#![cfg_attr(not(test), no_std)]
3#![feature(abi_x86_interrupt)]
4#![feature(doc_cfg, doc_auto_cfg)]
5#![feature(extern_types)]
6// Oftentimes it's necessary to write to a value at a particular location in
7// memory, and these types don't implement Copy to ensure they aren't
8// inadvertantly copied.
9#![allow(clippy::trivially_copy_pass_by_ref)]
10
11pub(crate) use hal_core::{PAddr, VAddr};
12#[cfg(feature = "alloc")]
13extern crate alloc;
14
15pub mod control_regs;
16pub mod cpu;
17pub mod framebuffer;
18pub mod interrupt;
19pub mod mm;
20pub mod segment;
21pub mod serial;
22pub mod task;
23pub mod time;
24pub mod vga;
25
26pub const NAME: &str = "x86_64";