Move disk to OS abstraction

This commit is contained in:
Jeremy Soller
2022-02-08 12:27:48 -07:00
parent 1a9fdeb76f
commit 2ab9afcbc4
5 changed files with 16 additions and 2 deletions
+2 -2
View File
@@ -22,7 +22,7 @@ use linked_list_allocator::LockedHeap;
use log::error;
use spin::Mutex;
use self::disk::DiskBios;
use self::os::DiskBios;
use self::logger::LOGGER;
use self::memory_map::memory_map;
use self::thunk::ThunkData;
@@ -32,9 +32,9 @@ use self::vga::{VgaTextBlock, VgaTextColor, Vga};
#[macro_use]
mod macros;
mod disk;
mod logger;
mod memory_map;
mod os;
mod paging;
mod panic;
mod thunk;
View File
+3
View File
@@ -0,0 +1,3 @@
pub use self::disk::DiskBios;
mod disk;
+11
View File
@@ -0,0 +1,11 @@
#[cfg(all(target_arch = "x86", target_os = "none"))]
pub use self::bios::*;
#[cfg(all(target_arch = "x86", target_os = "none"))]
mod bios;
#[cfg(target_os = "uefi")]
pub use self::uefi::*;
#[cfg(target_os = "uefi")]
mod uefi;
View File