xen: arm: support bootmodule type detection by ordering
authorIan Campbell <ian.campbell@citrix.com>
Fri, 18 Jul 2014 13:08:18 +0000 (14:08 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 21 Jul 2014 11:17:56 +0000 (12:17 +0100)
commite55370e3a0da5192fe3c29a370f26e1663707042
tree39931611f0f444e1c385e4efd552a844f256e01d
parente73b7d6619c8fb729a339a28b1c83ce650c96225
xen: arm: support bootmodule type detection by ordering

Assign modules types based on the order in which they are defined in the FDT.
This is supported only for the dom0 kernel and ramdisk when given as the first
and second modules respectively, similar to how
http://wiki.xen.org/wiki?title=Xen_ARM_with_Virtualization_Extensions/Multiboot&oldid=11824
defined the default types from the bootloader side.

This is compatible with how Xen interprets the modules with x86 multiboot and I
think simplifies things for bootloaders which now need not contain similar
guessing code if they only care about the most basic case.

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