Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102824453
D31999.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D31999.diff
View Options
diff --git a/sys/compat/linuxkpi/common/include/linux/io.h b/sys/compat/linuxkpi/common/include/linux/io.h
--- a/sys/compat/linuxkpi/common/include/linux/io.h
+++ b/sys/compat/linuxkpi/common/include/linux/io.h
@@ -411,8 +411,12 @@
#define ioremap(addr, size) \
_ioremap_attr((addr), (size), VM_MEMATTR_UNCACHEABLE)
#endif
+#ifdef VM_MEMATTR_WRITE_COMBINING
#define ioremap_wc(addr, size) \
_ioremap_attr((addr), (size), VM_MEMATTR_WRITE_COMBINING)
+#else
+#define ioremap_wc(addr, size) ioremap_nocache(addr, size)
+#endif
#define ioremap_wb(addr, size) \
_ioremap_attr((addr), (size), VM_MEMATTR_WRITE_BACK)
void iounmap(void *addr);
diff --git a/sys/compat/linuxkpi/common/include/linux/page.h b/sys/compat/linuxkpi/common/include/linux/page.h
--- a/sys/compat/linuxkpi/common/include/linux/page.h
+++ b/sys/compat/linuxkpi/common/include/linux/page.h
@@ -83,8 +83,12 @@
#define clear_page(page) memset(page, 0, PAGE_SIZE)
#define pgprot_noncached(prot) \
(((prot) & VM_PROT_ALL) | cachemode2protval(VM_MEMATTR_UNCACHEABLE))
+#ifdef VM_MEMATTR_WRITE_COMBINING
#define pgprot_writecombine(prot) \
(((prot) & VM_PROT_ALL) | cachemode2protval(VM_MEMATTR_WRITE_COMBINING))
+#else
+#define pgprot_writecombine(prot) pgprot_noncached(prot)
+#endif
#undef PAGE_MASK
#define PAGE_MASK (~(PAGE_SIZE-1))
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 18, 4:20 PM (21 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14700636
Default Alt Text
D31999.diff (1 KB)
Attached To
Mode
D31999: LinuxKPI: Add more #ifdef VM_MEMATTR_WRITE_COMBINING guards
Attached
Detach File
Event Timeline
Log In to Comment