Run pcid as a daemon

This commit is contained in:
Jeremy Soller
2016-09-17 08:09:32 -06:00
parent e306348e44
commit a87ab74e8f
+5 -2
View File
@@ -2,6 +2,7 @@
extern crate syscall;
use std::thread;
use syscall::iopl;
use pci::{Pci, PciBar, PciClass};
@@ -70,7 +71,9 @@ fn enumerate_pci() {
}
fn main() {
unsafe { iopl(3).unwrap() };
thread::spawn(||{
unsafe { iopl(3).unwrap() };
enumerate_pci();
enumerate_pci();
});
}