Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152994343
D38155.id115955.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
896 B
Referenced Files
None
Subscribers
None
D38155.id115955.diff
View Options
diff --git a/sys/compat/linuxkpi/common/include/linux/highmem.h b/sys/compat/linuxkpi/common/include/linux/highmem.h
--- a/sys/compat/linuxkpi/common/include/linux/highmem.h
+++ b/sys/compat/linuxkpi/common/include/linux/highmem.h
@@ -50,6 +50,7 @@
static inline vm_page_t
kmap_to_page(void *addr)
{
+
return (virt_to_page(addr));
}
@@ -88,9 +89,17 @@
static inline void *
kmap_atomic(vm_page_t page)
{
+
return (kmap_atomic_prot(page, VM_PROT_ALL));
}
+static inline void *
+kmap_local_page_prot(vm_page_t page, pgprot_t prot)
+{
+
+ return (kmap_atomic_prot(page, prot));
+}
+
static inline void
kunmap(vm_page_t page)
{
@@ -111,8 +120,16 @@
static inline void
kunmap_atomic(void *vaddr)
{
+
if (!PMAP_HAS_DMAP)
kunmap(virt_to_page(vaddr));
}
+static inline void
+kunmap_local(void *addr)
+{
+
+ kunmap_atomic(addr);
+}
+
#endif /* _LINUXKPI_LINUX_HIGHMEM_H_ */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 19, 12:55 PM (16 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31745104
Default Alt Text
D38155.id115955.diff (896 B)
Attached To
Mode
D38155: linuxkpi: Add `kmap_local_page_prot()` and `kunmap_local()`
Attached
Detach File
Event Timeline
Log In to Comment