From 96fbf1658fcc45fa82c0eefd7c67dd7ac6b59dba Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Fri, 24 Feb 2017 13:25:57 -0700 Subject: [PATCH] More completely disable XHCI driver --- xhcid/src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xhcid/src/main.rs b/xhcid/src/main.rs index 95beefd246..741871db4b 100644 --- a/xhcid/src/main.rs +++ b/xhcid/src/main.rs @@ -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); } } }