Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152888332
D51311.id158539.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
791 B
Referenced Files
None
Subscribers
None
D51311.id158539.diff
View Options
diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c
--- a/sys/i386/i386/pmap.c
+++ b/sys/i386/i386/pmap.c
@@ -876,14 +876,16 @@
#ifdef PMAP_PAE_COMP
static void *
-pmap_pdpt_allocf(uma_zone_t zone, vm_size_t bytes, int domain, uint8_t *flags,
- int wait)
+pmap_pdpt_allocf(uma_zone_t zone, vm_size_t bytes, int domain, uint8_t *sflagsp,
+ int flags)
{
/* Inform UMA that this allocator uses kernel_map/object. */
- *flags = UMA_SLAB_KERNEL;
+ *sflagsp = UMA_SLAB_KERNEL;
+ /* contig allocations cannot be NEVERFREED */
+ flags &= ~M_NEVERFREED;
return ((void *)kmem_alloc_contig_domainset(DOMAINSET_FIXED(domain),
- bytes, wait, 0x0ULL, 0xffffffffULL, 1, 0, VM_MEMATTR_DEFAULT));
+ bytes, flags, 0x0ULL, 0xffffffffULL, 1, 0, VM_MEMATTR_DEFAULT));
}
#endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 18, 7:28 PM (15 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31730503
Default Alt Text
D51311.id158539.diff (791 B)
Attached To
Mode
D51311: i386: Avoid calling kmem_alloc_contig(M_NEVERFREED)
Attached
Detach File
Event Timeline
Log In to Comment