|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] ARM/multiboot: use more flexible node naming
Hi,I have also modified this function with my patch series "Allow Xen to boot with a raw Device Tree". Can you rebase this patch on top of this serie? Other comments below. On 09/05/2013 02:43 PM, Andre Przywara wrote: The ePAR (section 2.2.1) requires the unit-address (name@unit-address) to match the first address of the "reg" property. I think, with this solution we doesn't comply to the specification. If the bootloader is able to add "boot,kernel" and "boot,initramfs" to the compatible property, we should have a generic solution for multiboot. These variable are only used durint the initialization, you should add __initconst.[1] http://lists.xen.org/archives/html/xen-devel/2013-09/msg00083.html Signed-off-by: Andre Przywara <andre.przywara@xxxxxxxxxx> --- xen/common/device_tree.c | 57 ++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 50 insertions(+), 7 deletions(-) diff --git a/xen/common/device_tree.c b/xen/common/device_tree.c index ec0d5e2..e10c035 100644 --- a/xen/common/device_tree.c +++ b/xen/common/device_tree.c @@ -439,22 +439,63 @@ static void __init process_cpu_node(const void *fdt, int node, cpumask_set_cpu(start, &cpu_possible_map); } +static const char * const kernel_module_names[] = { + "xen,linux-zimage", + "xen,dom0-kernel", + "boot,kernel", + NULL Xen uses spaces instead of tabulations. __initconst + "xen,linux-initrd", + "xen,ramdisk", + "boot,ramdisk", + NULL tabulations the coding style for "for" is for ( ... )
newline before {
+ nr = MOD_KERNEL; + break; + } + + for (name_list = initrd_module_names; *name_list != NULL; name_list++) for ( ... )
newline before {
newline before {
+ char *s; there is a tabulation here.
newline before {
early_panic is a bit tough, can we simply ignore the node? + return; + } + s = strchr(name, '@'); + if (s == NULL) if ( ... )
newline before {
if ( ... ) You should also check nr < 0. Strtoll could return a negative value. indentation here. Do we consider the multiboot node can live outside /chosen? -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |