opnsense-src/sys/powerpc/aim
Leandro Lupori c930d356a3 powerpc64: fix the calculation of Maxmem
The calculation of Maxmem was skipping the last phys_avail segment,
because of a wrong stop condition.

This was detected when using QEMU/PowerNV with Radix MMU and low
memory (2G). In this case opal_pci would allocate a DMA window that
was too small to cover all physical memory, resulting in reading all
zeroes from disk when using memory that was not inside the allocated
window.

Reviewed by:		jhibbits
Sponsored by:		Instituto de Pesquisas Eldorado (eldorado.org.br)
Differential Revision:	https://reviews.freebsd.org/D33449

(cherry picked from commit a076e2060c)
2022-01-10 11:36:56 -03:00
..
aim_machdep.c powerpc64: fix OFWFB with Radix MMU 2021-11-05 11:08:27 -03:00
locore.S Add CFI start/end proc directives to arm64, i386, and ppc 2020-12-05 00:33:28 +00:00
locore32.S powerpc64: Add a trap stack area 2019-02-04 16:02:03 +00:00
locore64.S powerpc64: Fix boot on virtual-mode OF (PowerMac G5) 2021-02-09 21:19:45 -06:00
mmu_oea.c Clean up a couple of MD warts in vm_fault_populate(): 2021-12-27 19:35:55 -05:00
mmu_oea64.c powerpc64: fix the calculation of Maxmem 2022-01-10 11:36:56 -03:00
mmu_oea64.h Implement superpages for PowerPC64 (HPT) 2020-11-06 14:12:45 +00:00
mmu_radix.c powerpc64: fix the calculation of Maxmem 2022-01-10 11:36:56 -03:00
moea64_native.c [PowerPC] Fix powerpc64le boot after HPT superpages addition 2020-11-08 23:34:06 +00:00
mp_cpudep.c powerpc/aim: Update timebase directly on resume instead of through platform 2021-04-19 23:13:56 -05:00
slb.c Convert consumers to vm_page_alloc_noobj_contig() 2021-11-03 13:41:40 -04:00
trap_subr32.S [PowerPC] Fix invalid asm in trap code 2020-05-27 00:17:05 +00:00
trap_subr64.S Add CFI start/end proc directives to arm64, i386, and ppc 2020-12-05 00:33:28 +00:00