Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177601134
D33449.1794821852.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
818 B
Referenced Files
None
Subscribers
None
D33449.1794821852.diff
View Options
Index: sys/powerpc/aim/mmu_oea64.c
===================================================================
--- sys/powerpc/aim/mmu_oea64.c
+++ sys/powerpc/aim/mmu_oea64.c
@@ -1162,7 +1162,7 @@
* Calculate the last available physical address.
*/
Maxmem = 0;
- for (i = 0; phys_avail[i + 2] != 0; i += 2)
+ for (i = 0; phys_avail[i + 1] != 0; i += 2)
Maxmem = MAX(Maxmem, powerpc_btop(phys_avail[i + 1]));
/*
Index: sys/powerpc/aim/mmu_radix.c
===================================================================
--- sys/powerpc/aim/mmu_radix.c
+++ sys/powerpc/aim/mmu_radix.c
@@ -2066,7 +2066,7 @@
* vm_page_array (upper bound).
*/
Maxmem = 0;
- for (i = 0; phys_avail[i + 2] != 0; i += 2)
+ for (i = 0; phys_avail[i + 1] != 0; i += 2)
Maxmem = MAX(Maxmem, powerpc_btop(phys_avail[i + 1]));
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 16, 9:37 AM (23 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41771452
Default Alt Text
D33449.1794821852.diff (818 B)
Attached To
Mode
D33449: powerpc64: fix the calculation of Maxmem
Attached
Detach File
Event Timeline