diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2013-08-22 16:24:46 +0100 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2013-08-27 14:36:31 +0100 |
commit | 7ac87d5e2096e4c33c0a5e24a1b4746b1a81a773 (patch) | |
tree | 921a6afa9a813d88cf1aabeb55307b0186dafdc3 /xen/arch/arm/setup.c | |
parent | ca617a664aed71503695b6a9498963a5e9dddb24 (diff) | |
download | xen-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/arch/arm/setup.c')
-rw-r--r-- | xen/arch/arm/setup.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/xen/arch/arm/setup.c b/xen/arch/arm/setup.c index f8a3d04583..4b31623add 100644 --- a/xen/arch/arm/setup.c +++ b/xen/arch/arm/setup.c @@ -152,7 +152,7 @@ void __init discard_initial_modules(void) struct dt_module_info *mi = &early_info.modules; int i; - for ( i = 1; i <= mi->nr_mods; i++ ) + for ( i = MOD_DISCARD_FIRST; i <= mi->nr_mods; i++ ) { paddr_t s = mi->module[i].start; paddr_t e = s + PAGE_ALIGN(mi->module[i].size); @@ -271,9 +271,8 @@ static paddr_t __init get_xen_paddr(void) early_printk("Placing Xen at 0x%"PRIpaddr"-0x%"PRIpaddr"\n", paddr, paddr + min_size); - /* Xen is module 0 */ - early_info.modules.module[0].start = paddr; - early_info.modules.module[0].size = min_size; + early_info.modules.module[MOD_XEN].start = paddr; + early_info.modules.module[MOD_XEN].size = min_size; return paddr; } |