Signed-off-by: Julien CLEMENT <julien.clement@epita.fr>
This commit is contained in:
1 parent
ec98428697
commit
5303ea4581
7 files changed
+55
-22
No files matched your search
@@ -58,7 +58,8 @@ static ATAPI_SIG: [u8; 4] = [
|
||||
];
|
||||
|
||||
lazy_static! {
|
||||
pub static ref DRIVE: AsyncMutex<Option<ATABus>> = AsyncMutex::new(ATABus::discover_atapi_drive());
|
||||
pub static ref DRIVE: AsyncMutex<Option<ATABus>> =
|
||||
AsyncMutex::new(ATABus::discover_atapi_drive());
|
||||
}
|
||||
|
||||
pub async fn init() {
|
||||
@@ -328,4 +329,4 @@ pub async fn print_block(lba: u32) {
|
||||
|
||||
pub async fn read_block(lba: u32) -> [u8; CD_SECTOR_SIZE] {
|
||||
DRIVE.lock().await.as_mut().unwrap().read_block(lba).await
|
||||
}
|
||||
}
|
||||