More completely disable XHCI driver
This commit is contained in:
+3
-1
@@ -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); }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user