diff options
author | danh-arm <dan.handley@arm.com> | 2015-03-17 14:28:48 +0000 |
---|---|---|
committer | danh-arm <dan.handley@arm.com> | 2015-03-17 14:28:48 +0000 |
commit | 541d788175f5df2f9be34f30bc2b724135c2ceb9 (patch) | |
tree | 49400e3dbf1272ebc3ece37c942fd341dc66a043 /lib | |
parent | 27bc0106665eddf3e6f84101e73e27b823867bef (diff) | |
parent | 4991ecdc50ff7b72e5d80b4cc8b6ef8c0fbe036e (diff) |
Merge pull request #269 from vikramkanigiri/vk/common-cci
Common driver for ARM cache coherent Interconnects
Diffstat (limited to 'lib')
-rw-r--r-- | lib/aarch64/xlat_tables.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/aarch64/xlat_tables.c b/lib/aarch64/xlat_tables.c index ddc9ba88..fa1a03da 100644 --- a/lib/aarch64/xlat_tables.c +++ b/lib/aarch64/xlat_tables.c @@ -31,6 +31,7 @@ #include <arch.h> #include <arch_helpers.h> #include <assert.h> +#include <bl_common.h> #include <cassert.h> #include <platform_def.h> #include <string.h> @@ -89,7 +90,7 @@ void mmap_add_region(unsigned long base_pa, unsigned long base_va, unsigned long size, unsigned attr) { mmap_region_t *mm = mmap; - mmap_region_t *mm_last = mm + sizeof(mmap) / sizeof(mmap[0]) - 1; + mmap_region_t *mm_last = mm + ARRAY_SIZE(mmap) - 1; unsigned long pa_end = base_pa + size - 1; unsigned long va_end = base_va + size - 1; |