More completely disable XHCI driver

This commit is contained in:
Jeremy Soller
2017-02-24 13:25:57 -07:00
parent 975082c18a
commit 96fbf1658f
+3 -1
View File
@@ -22,14 +22,16 @@ fn main() {
// Daemonize
if unsafe { syscall::clone(0).unwrap() } == 0 {
let address = unsafe { syscall::physmap(bar, 4096, syscall::MAP_WRITE).expect("xhcid: failed to map address") };
/*
match Xhci::new(address) {
Ok(mut xhci) => {
//xhci.init();
xhci.init();
},
Err(err) => {
println!("xhcid: error: {}", err);
}
}
*/
unsafe { let _ = syscall::physunmap(address); }
}
}