summaryrefslogtreecommitdiff
path: root/common/bl_common.c
diff options
context:
space:
mode:
authorDan Handley <dan.handley@arm.com>2016-12-20 11:45:15 +0000
committerDan Handley <dan.handley@arm.com>2016-12-20 11:45:15 +0000
commit9e75fddc3a89c1c2fbaf38213e627668271d6af5 (patch)
tree450cceb219ab2a385d7b3350ca4debd14af75205 /common/bl_common.c
parent19d2595d41159f7b71ada18653f4ed7aeb540c76 (diff)
parent34ba298e094d24dd0fc9559999d00e65b71cc117 (diff)
Merge pull request #783 from danh-arm/sb/bl1-fwu-copy
Diffstat (limited to 'common/bl_common.c')
-rw-r--r--common/bl_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/bl_common.c b/common/bl_common.c
index 15d5bdee..47bdad5a 100644
--- a/common/bl_common.c
+++ b/common/bl_common.c
@@ -53,14 +53,13 @@ uintptr_t page_align(uintptr_t value, unsigned dir)
return value;
}
-#if !LOAD_IMAGE_V2
/******************************************************************************
* Determine whether the memory region delimited by 'addr' and 'size' is free,
* given the extents of free memory.
* Return 1 if it is free, 0 if it is not free or if the input values are
* invalid.
*****************************************************************************/
-static int is_mem_free(uintptr_t free_base, size_t free_size,
+int is_mem_free(uintptr_t free_base, size_t free_size,
uintptr_t addr, size_t size)
{
uintptr_t free_end, requested_end;
@@ -97,6 +96,7 @@ static int is_mem_free(uintptr_t free_base, size_t free_size,
return (addr >= free_base) && (requested_end <= free_end);
}
+#if !LOAD_IMAGE_V2
/******************************************************************************
* Inside a given memory region, determine whether a sub-region of memory is
* closer from the top or the bottom of the encompassing region. Return the