Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F166342553
D57991.id181163.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
738 B
Referenced Files
None
Subscribers
None
D57991.id181163.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
@@ -50,8 +50,8 @@
#define page vm_page
-#define LINUXKPI_PROT_VALID (1 << 3)
-#define LINUXKPI_CACHE_MODE_SHIFT 4
+#define LINUXKPI_PROT_VALID (1 << 8)
+#define LINUXKPI_CACHE_MODE_SHIFT 9
CTASSERT((VM_PROT_ALL & -LINUXKPI_PROT_VALID) == 0);
@@ -60,7 +60,7 @@
static inline pgprot_t
cachemode2protval(vm_memattr_t attr)
{
- return ((attr << LINUXKPI_CACHE_MODE_SHIFT) | LINUXKPI_PROT_VALID);
+ return (((pgprot_t)attr << LINUXKPI_CACHE_MODE_SHIFT) | LINUXKPI_PROT_VALID);
}
static inline vm_memattr_t
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Aug 14, 12:42 AM (10 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34593078
Default Alt Text
D57991.id181163.diff (738 B)
Attached To
Mode
D57991: linuxkpi: Move LINUXKPI_PROT_VALID higher
Attached
Detach File
Event Timeline
Log In to Comment