Split crate into lib.rs and main.rs

This commit is contained in:
Philipp Oppermann
2019-01-25 13:44:04 +01:00
parent d007aae993
commit bd39105793
2 changed files with 12 additions and 15 deletions

11
src/lib.rs Normal file
View File

@@ -0,0 +1,11 @@
#![cfg_attr(not(test), no_std)]
pub mod serial;
pub mod vga_buffer;
pub unsafe fn exit_qemu() {
use x86_64::instructions::port::Port;
let mut port = Port::<u32>::new(0xf4);
port.write(0);
}