Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149316441
D46661.1789854441.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
726 B
Referenced Files
None
Subscribers
None
D46661.1789854441.diff
View Options
diff --git a/sys/compat/linuxkpi/common/src/linux_page.c b/sys/compat/linuxkpi/common/src/linux_page.c
--- a/sys/compat/linuxkpi/common/src/linux_page.c
+++ b/sys/compat/linuxkpi/common/src/linux_page.c
@@ -182,12 +182,10 @@
size_t size = ((size_t)PAGE_SIZE) << order;
void *addr;
- if ((flags & GFP_DMA32) == 0) {
- addr = kmem_malloc(size, flags & GFP_NATIVE_MASK);
- } else {
- addr = kmem_alloc_contig(size, flags & GFP_NATIVE_MASK, 0,
- BUS_SPACE_MAXADDR_32BIT, PAGE_SIZE, 0, VM_MEMATTR_DEFAULT);
- }
+ addr = kmem_alloc_contig(size, flags & GFP_NATIVE_MASK, 0,
+ ((flags & GFP_DMA32) == 0) ? -1UL : BUS_SPACE_MAXADDR_32BIT,
+ PAGE_SIZE, 0, VM_MEMATTR_DEFAULT);
+
return ((vm_offset_t)addr);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Sep 19, 9:47 PM (1 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29795356
Default Alt Text
D46661.1789854441.diff (726 B)
Attached To
Mode
D46661: LinuxKPI: always use contig allocations in linux_alloc_kmem()
Attached
Detach File
Event Timeline
Log In to Comment