Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F116042638
D29603.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
496 B
Referenced Files
None
Subscribers
None
D29603.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D29603: pciconf: Use VM_MEMATTR_DEVICE on supported architectures
Attached
Detach File
Event Timeline
Log In to Comment