aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2013-08-22 16:24:46 +0100
committerIan Campbell <ian.campbell@citrix.com>2013-08-27 14:36:31 +0100
commit7ac87d5e2096e4c33c0a5e24a1b4746b1a81a773 (patch)
tree921a6afa9a813d88cf1aabeb55307b0186dafdc3 /xen/common
parentca617a664aed71503695b6a9498963a5e9dddb24 (diff)
downloadxen-7ac87d5e2096e4c33c0a5e24a1b4746b1a81a773.tar.gz
xen-7ac87d5e2096e4c33c0a5e24a1b4746b1a81a773.tar.bz2
xen-7ac87d5e2096e4c33c0a5e24a1b4746b1a81a773.zip
xen/arm: use defines for boot module indexes instead of open coded numbers
Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Reviewed-by: Julien Grall <julien.grall@linaro.org>
Diffstat (limited to 'xen/common')
-rw-r--r--xen/common/device_tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/common/device_tree.c b/xen/common/device_tree.c
index 12499853df..3a3c99cbd7 100644
--- a/xen/common/device_tree.c
+++ b/xen/common/device_tree.c
@@ -445,9 +445,9 @@ static void __init process_multiboot_node(const void *fdt, int node,
int len;
if ( fdt_node_check_compatible(fdt, node, "xen,linux-zimage") == 0 )
- nr = 1;
+ nr = MOD_KERNEL;
else if ( fdt_node_check_compatible(fdt, node, "xen,linux-initrd") == 0)
- nr = 2;
+ nr = MOD_INITRD;
else
early_panic("%s not a known xen multiboot type\n", name);