Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F135930383
D23931.id69210.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
688 B
Referenced Files
None
Subscribers
None
D23931.id69210.diff
View Options
Index: head/sys/powerpc/powerpc/uma_machdep.c
===================================================================
--- head/sys/powerpc/powerpc/uma_machdep.c
+++ head/sys/powerpc/powerpc/uma_machdep.c
@@ -95,14 +95,13 @@
{
vm_page_t m;
- if (!hw_direct_map)
- pmap_remove(kernel_pmap,(vm_offset_t)mem,
- (vm_offset_t)mem + PAGE_SIZE);
-
if (hw_direct_map)
m = PHYS_TO_VM_PAGE(DMAP_TO_PHYS((vm_offset_t)mem));
- else
- m = PHYS_TO_VM_PAGE((vm_offset_t)mem);
+ else {
+ m = PHYS_TO_VM_PAGE(pmap_kextract((vm_offset_t)mem));
+ pmap_kremove((vm_offset_t)mem);
+ }
+
KASSERT(m != NULL,
("Freeing UMA block at %p with no associated page", mem));
#ifdef __powerpc64__
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 15, 6:40 AM (1 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25318912
Default Alt Text
D23931.id69210.diff (688 B)
Attached To
Mode
D23931: [PowerPC64] fix uma_small_free panic
Attached
Detach File
Event Timeline
Log In to Comment