* [PATCH 1/2] xen: arm: implement generic multiboot compatibility strings
@ 2014-06-06 12:15 Ian Campbell
2014-06-06 12:32 ` Julien Grall
0 siblings, 1 reply; 2+ messages in thread
From: Ian Campbell @ 2014-06-06 12:15 UTC (permalink / raw)
To: xen-devel
Cc: Ian Campbell, stefano.stabellini, julien.grall, tim, linaro-uefi,
Fu Wei
This causes Xen to accept the more generic names specified in
http://wiki.xen.org/wiki/Xen_ARM_with_Virtualization_Extensions/Multiboot as of
2014-06-06.
These names are more generic than those proposed by Andre in
http://thread.gmane.org/gmane.linux.linaro.announce.boot/326 and those
used in earlier drafts of the /Multiboot wiki page.
This will allow bootloaders to not special case Xen (or at least to reduce
the amount which is required).
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
---
v2: Use multiboot,{kernel,ramdisk,module}
---
xen/common/device_tree.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/xen/common/device_tree.c b/xen/common/device_tree.c
index f0b17a3..48ae849 100644
--- a/xen/common/device_tree.c
+++ b/xen/common/device_tree.c
@@ -338,9 +338,11 @@ static void __init process_multiboot_node(const void *fdt, int node,
struct dt_mb_module *mod;
int len;
- if ( fdt_node_check_compatible(fdt, node, "xen,linux-zimage") == 0 )
+ if ( fdt_node_check_compatible(fdt, node, "xen,linux-zimage") == 0 ||
+ fdt_node_check_compatible(fdt, node, "multiboot,kernel") == 0 )
nr = MOD_KERNEL;
- else if ( fdt_node_check_compatible(fdt, node, "xen,linux-initrd") == 0)
+ else if ( fdt_node_check_compatible(fdt, node, "xen,linux-initrd") == 0 ||
+ fdt_node_check_compatible(fdt, node, "multiboot,ramdisk") == 0 )
nr = MOD_INITRD;
else if ( fdt_node_check_compatible(fdt, node, "xen,xsm-policy") == 0 )
nr = MOD_XSM;
@@ -433,7 +435,8 @@ static int __init early_scan_node(const void *fdt,
{
if ( device_tree_node_matches(fdt, node, "memory") )
process_memory_node(fdt, node, name, address_cells, size_cells);
- else if ( device_tree_node_compatible(fdt, node, "xen,multiboot-module" ) )
+ else if ( device_tree_node_compatible(fdt, node, "xen,multiboot-module" ) ||
+ device_tree_node_compatible(fdt, node, "multiboot,module" ))
process_multiboot_node(fdt, node, name, address_cells, size_cells);
else if ( depth == 1 && device_tree_node_matches(fdt, node, "chosen") )
process_chosen_node(fdt, node, name, address_cells, size_cells);
--
1.9.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/2] xen: arm: implement generic multiboot compatibility strings
2014-06-06 12:15 [PATCH 1/2] xen: arm: implement generic multiboot compatibility strings Ian Campbell
@ 2014-06-06 12:32 ` Julien Grall
0 siblings, 0 replies; 2+ messages in thread
From: Julien Grall @ 2014-06-06 12:32 UTC (permalink / raw)
To: Ian Campbell, xen-devel; +Cc: linaro-uefi, tim, Fu Wei, stefano.stabellini
Hi Ian,
On 06/06/2014 01:15 PM, Ian Campbell wrote:
> This causes Xen to accept the more generic names specified in
> http://wiki.xen.org/wiki/Xen_ARM_with_Virtualization_Extensions/Multiboot as of
> 2014-06-06.
>
> These names are more generic than those proposed by Andre in
> http://thread.gmane.org/gmane.linux.linaro.announce.boot/326 and those
> used in earlier drafts of the /Multiboot wiki page.
>
> This will allow bootloaders to not special case Xen (or at least to reduce
> the amount which is required).
>
> Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Julien Grall <julien.grall@linaro.org>
Regards,
--
Julien Grall
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-06-06 12:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-06 12:15 [PATCH 1/2] xen: arm: implement generic multiboot compatibility strings Ian Campbell
2014-06-06 12:32 ` Julien Grall
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).