summaryrefslogtreecommitdiff
path: root/util/inteltool/inteltool.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/inteltool/inteltool.c')
-rw-r--r--util/inteltool/inteltool.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/inteltool/inteltool.c b/util/inteltool/inteltool.c
index 688e74342f..7cd4363129 100644
--- a/util/inteltool/inteltool.c
+++ b/util/inteltool/inteltool.c
@@ -24,6 +24,7 @@
#include <sys/mman.h>
#include <unistd.h>
#include "inteltool.h"
+#include "pcr.h"
#ifdef __NetBSD__
#include <machine/sysarch.h>
@@ -511,6 +512,7 @@ int main(int argc, char *argv[])
#endif
pacc = pci_alloc();
+ pacc->method = PCI_ACCESS_I386_TYPE1;
pci_init(pacc);
pci_scan_bus(pacc);
@@ -681,6 +683,7 @@ int main(int argc, char *argv[])
print_sgx();
/* Clean up */
+ pcr_cleanup();
if (ahci)
pci_free_dev(ahci);
if (gfx)