opnsense-src/sys/mips/malta
John Baldwin a0399b42a5 Support 2GB of memory on Malta systems with FreeBSD/mips.
When 2GB of memory is enabled for QEMU's Malta emulation, the physical
memory ends at an address of 2^32 - 1.  This causes an integer overflow
to zero when computing the upper bound of the second phys_avail[] range.
As a result, FreeBSD/mips kernels were only using the first 256MB of
RAM and ignoring the remaining 1.75GB.  To work around this, truncate
the extended memory size to 2GB minus one page for 32-bit mips kernels.

Sponsored by:	DARPA / AFRL
Differential Revision:	https://reviews.freebsd.org/D16027
2018-06-28 21:27:34 +00:00
..
asm_malta.S Add SMP support for MTI Malta 34kf CPU. 2016-09-12 16:38:51 +00:00
files.malta Add support for SMP on MIPS Malta platform. 2016-09-09 14:50:44 +00:00
gt.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
gt_pci.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
gt_pci_bus_space.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
gt_pci_bus_space.h sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
gtreg.h sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
gtvar.h sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
malta_machdep.c Support 2GB of memory on Malta systems with FreeBSD/mips. 2018-06-28 21:27:34 +00:00
malta_mp.c Add SMP support for MTI Malta 34kf CPU. 2016-09-12 16:38:51 +00:00
maltareg.h sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
obio.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
obiovar.h sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
std.malta Add support for SMP on MIPS Malta platform. 2016-09-09 14:50:44 +00:00
uart_bus_maltausart.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
uart_cpu_maltausart.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
yamon.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
yamon.h sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00