MCPcopy Create free account
hub / github.com/LibertyOS-Development/kernel / init

Function init

src/fs/ata.rs:429–441  ·  view source on GitHub ↗

Initialization

()

Source from the content-addressed store, hash-verified

427
428// Initialization
429pub fn init()
430{
431 {
432 let mut buses = BUSES.lock();
433 buses.push(Bus::new(0, 0x1F0, 0x3F6, 14));
434 buses.push(Bus::new(1, 0x170, 0x376, 15));
435 }
436
437 for drive in ls()
438 {
439 serprintln!("[INFO] ATA {}:{} {}\n", drive.bus, drive.disk, drive);
440 }
441}
442
443
444// Drive struct

Callers 1

pallocFunction · 0.50

Calls 2

lockMethod · 0.80
lsFunction · 0.70

Tested by

no test coverage detected