OSDN Git Service

mips_malta: provide ememsize env variable to kernels
authorPaul Burton <paul.burton@imgtec.com>
Mon, 25 May 2015 13:21:04 +0000 (14:21 +0100)
committerLeon Alrae <leon.alrae@imgtec.com>
Thu, 11 Jun 2015 09:13:28 +0000 (10:13 +0100)
commit71c199c81d290b2077ee7cf5400332a342de3a97
tree58b6c027cb6b2fc36a4d2f6441d6649c45292d39
parent7c979afd11b09a16634699dd6344e3ba10c9677e
mips_malta: provide ememsize env variable to kernels

Commit 94c2b6aff43c (mips_malta: support up to 2GiB RAM) provided
support for using over 256MB of RAM with the MIPS Malta board, including
capping the memsize variable that QEMUs pseudo-bootloader provides to
the kernel at 256MB in order to match YAMON. It didn't however provide
the ememsize variable which kernels supporting memory outside of the
unmapped address spaces (ie. EVA or highmem) may use to determine the
true size of the RAM present in the system.

Set ememsize to the size of RAM so that such kernels may use all
available memory without the user having to manually specifying its size
& location.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Cc: Leon Alrae <leon.alrae@imgtec.com>
Reviewed-by: Leon Alrae <leon.alrae@imgtec.com>
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
hw/mips/mips_malta.c