#![no_std] // don't link the Rust standard library #![feature(abi_x86_interrupt)] extern crate bootloader_precompiled; extern crate spin; extern crate volatile; #[macro_use] extern crate lazy_static; extern crate uart_16550; extern crate x86_64; #[cfg(test)] extern crate array_init; #[cfg(test)] extern crate std; #[macro_use] pub mod vga_buffer; pub mod gdt; pub mod interrupts; pub mod serial; pub unsafe fn exit_qemu() { use x86_64::instructions::port::Port; let mut port = Port::::new(0xf4); port.write(0); }