Signed-off-by: Julien CLEMENT <julien.clement@epita.fr>
This commit is contained in:
1 parent
dcaea4454b
commit
0c0af6414e
5 files changed
+55
-40
No files matched your search
+18
-1
@@ -1 +1,18 @@
|
||||
pub mod iso9660;
|
||||
pub mod iso9660;
|
||||
|
||||
use crate::serial_println;
|
||||
use crate::drivers::atapi::{DRIVE};
|
||||
use crate::utils::unserialize;
|
||||
use iso9660::{IsoPrimVolDesc};
|
||||
|
||||
pub async fn init_prim_vol_desc() {
|
||||
let desc_block = DRIVE
|
||||
.lock()
|
||||
.as_mut()
|
||||
.unwrap()
|
||||
.read_block(iso9660::ISO_PRIM_VOLDESC_BLOCK)
|
||||
.await;
|
||||
let prim_vol_desc: &IsoPrimVolDesc = unserialize::<IsoPrimVolDesc>(desc_block.as_ptr());
|
||||
|
||||
serial_println!("{:?}", prim_vol_desc.std_identifier);
|
||||
}
|
||||