Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148043067
D33449.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
763 B
Referenced Files
None
Subscribers
None
D33449.diff
View Options
diff --git a/sys/powerpc/aim/mmu_oea64.c b/sys/powerpc/aim/mmu_oea64.c
--- a/sys/powerpc/aim/mmu_oea64.c
+++ b/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]));
/*
diff --git a/sys/powerpc/aim/mmu_radix.c b/sys/powerpc/aim/mmu_radix.c
--- a/sys/powerpc/aim/mmu_radix.c
+++ b/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, Mar 16, 9:12 AM (4 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29763927
Default Alt Text
D33449.diff (763 B)
Attached To
Mode
D33449: powerpc64: fix the calculation of Maxmem
Attached
Detach File
Event Timeline
Log In to Comment