Page MenuHomeFreeBSD

D29603.diff
No OneTemporary

D29603.diff

diff --git a/usr.sbin/pciconf/pciconf.c b/usr.sbin/pciconf/pciconf.c
--- a/usr.sbin/pciconf/pciconf.c
+++ b/usr.sbin/pciconf/pciconf.c
@@ -1126,7 +1126,11 @@
if (*reg == '\0' || *el != '\0')
errx(1, "Invalid bar specification %s", reg);
pbm.pbm_flags = 0;
- pbm.pbm_memattr = VM_MEMATTR_UNCACHEABLE; /* XXX */
+#ifdef VM_MEMATTR_DEVICE
+ pbm.pbm_memattr = VM_MEMATTR_DEVICE;
+#else
+ pbm.pbm_memattr = VM_MEMATTR_UNCACHEABLE;
+#endif
fd = open(_PATH_DEVPCI, O_RDWR, 0);
if (fd < 0)

File Metadata

Mime Type
text/plain
Expires
Fri, May 2, 11:58 PM (13 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17915004
Default Alt Text
D29603.diff (496 B)

Event Timeline