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

Run pcid as a daemon

parent e306348e
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
extern crate syscall; extern crate syscall;
use std::thread;
use syscall::iopl; use syscall::iopl;
use pci::{Pci, PciBar, PciClass}; use pci::{Pci, PciBar, PciClass};
...@@ -70,7 +71,9 @@ fn enumerate_pci() { ...@@ -70,7 +71,9 @@ fn enumerate_pci() {
} }
fn main() { fn main() {
unsafe { iopl(3).unwrap() }; thread::spawn(||{
unsafe { iopl(3).unwrap() };
enumerate_pci(); 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