Commit a87ab74e authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Run pcid as a daemon

parent e306348e
......@@ -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() {
thread::spawn(||{
unsafe { iopl(3).unwrap() };
enumerate_pci();
});
}
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