Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163454096
D58299.id182169.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
863 B
Referenced Files
None
Subscribers
None
D58299.id182169.diff
View Options
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
@@ -72,13 +72,14 @@
return (VM_MEMATTR_DEFAULT);
}
-#define page_to_virt(page) linux_page_address(page)
#define virt_to_page(x) PHYS_TO_VM_PAGE(vtophys(x))
#define page_to_pfn(pp) atop(VM_PAGE_TO_PHYS(pp))
#define pfn_to_page(pfn) PHYS_TO_VM_PAGE(ptoa(pfn))
-#define nth_page(page,n) pfn_to_page(page_to_pfn(page) + (n))
#define page_to_phys(page) VM_PAGE_TO_PHYS(page)
+#define page_to_virt(page) linux_page_address(page)
+#define nth_page(page,n) pfn_to_page(page_to_pfn(page) + (n))
+
#define pgprot_noncached(prot) \
(((prot) & VM_PROT_ALL) | cachemode2protval(VM_MEMATTR_UNCACHEABLE))
#ifdef VM_MEMATTR_WRITE_COMBINING
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 24, 8:17 AM (8 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35232809
Default Alt Text
D58299.id182169.diff (863 B)
Attached To
Mode
D58299: LinuxKPI: page.h: resort lines
Attached
Detach File
Event Timeline
Log In to Comment