Commit 96fbf165 authored by Jeremy Soller's avatar Jeremy Soller

More completely disable XHCI driver

parent 975082c1
......@@ -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); }
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment