Move disk to OS abstraction
This commit is contained in:
+2
-2
@@ -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;
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
pub use self::disk::DiskBios;
|
||||
|
||||
mod disk;
|
||||
@@ -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;
|
||||
Reference in New Issue
Block a user