Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177627473
D23931.1794880822.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
713 B
Referenced Files
None
Subscribers
None
D23931.1794880822.diff
View Options
Index: sys/powerpc/powerpc/uma_machdep.c
===================================================================
--- sys/powerpc/powerpc/uma_machdep.c
+++ sys/powerpc/powerpc/uma_machdep.c
@@ -95,14 +95,14 @@
{
vm_page_t m;
- if (!hw_direct_map)
+ if (hw_direct_map)
+ m = PHYS_TO_VM_PAGE(DMAP_TO_PHYS((vm_offset_t)mem));
+ else {
+ m = PHYS_TO_VM_PAGE(pmap_kextract((vm_offset_t)mem));
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);
KASSERT(m != NULL,
("Freeing UMA block at %p with no associated page", mem));
#ifdef __powerpc64__
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 17, 2:00 AM (12 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41791185
Default Alt Text
D23931.1794880822.diff (713 B)
Attached To
Mode
D23931: [PowerPC64] fix uma_small_free panic
Attached
Detach File
Event Timeline