xen: arm: rework placement of fdt in initial dom0 memory map
authorIan Campbell <ian.campbell@citrix.com>
Tue, 17 Sep 2013 15:28:12 +0000 (16:28 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Sat, 21 Sep 2013 15:20:20 +0000 (16:20 +0100)
commitfbe4633e5cbd9245967fe7910c5ef8464823317a
tree9a6ca870871ce2a8a1f6f9985ac8a847cd076b39
parent8e2acc2074cefe54ce71ab8a7e41d75a8dabdd10
xen: arm: rework placement of fdt in initial dom0 memory map

The 32-bit Linux kernel uses its lowmem direct mapping to access the FDT. The
lowmem mapping is around 0.75GiB but varies depending on the kernel's .config.
Our current scheme of loading the FDT as high as 4GB therefore fails with
larger amounts of dom0 RAM.

The upstream documentation has recently been update to provide more guidance
<http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=7824/1>. In
accordance with this load the kernel just below 128MiB (aligned to 2MB) and
the FDT just above, or if there is less RAM available then as high as
possible.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Julien Grall <julien.grall@linaro.org>
xen/arch/arm/domain_build.c
xen/arch/arm/kernel.c