xen: arm: rework dom0 initrd and dtb placement
authorIan Campbell <ian.campbell@citrix.com>
Wed, 9 Apr 2014 11:51:16 +0000 (12:51 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 10 Apr 2014 11:14:45 +0000 (12:14 +0100)
commitbef15de706d796f0d9f16fd3b69d6b5cada2ce9b
tree3c55696de9f8b12ed1c672820c82b947d8b761f1
parent00dea7acf444891f789aad213c871095422fe9d0
xen: arm: rework dom0 initrd and dtb placement

This now uses the same decision tree as libxc (which is much easier to test).

The main change is to explicitly handle the placement at 128MB or end of RAM
as two cases, rather than combining with MIN. The effect is the same but the
code is clearer.

Secondly the attempt to place the modules right after the kernel is removed,
since it is redundant with the case where placing them at the end of RAM ends
up abutting the kernel.

Also round the kernel size up to a 2MB boundary.

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