diff options
author | Konstantin Porotchkin <kostap@marvell.com> | 2017-03-20 15:45:08 +0200 |
---|---|---|
committer | Konstantin Porotchkin <kostap@marvell.com> | 2017-04-02 17:33:14 +0300 |
commit | 40f9219872b6dd906e25dfd421ae6026f1ab2bd7 (patch) | |
tree | 16ad34e36fa73f87df701c2101b322b8960dd7fe /drivers/io/io_fip.c | |
parent | a5eeac6a2352e926722b801cfead7af1e92a55a1 (diff) |
io: Allow image load to address zero
Allow zero-address assertion bypass if requested by platform
compilation flag PLAT_ALLOW_ZERO_ADDR_COPY.
This patch allows loading BL33 (u-boot) to address 0x0
Change-Id: I10518db13466017110358437790ce5212d52d9e6
Signed-off-by: Haim Boot <hayim@marvell.com>
Signed-off-by: Konstantin Porotchkin <kostap@marvell.com>
Reviewed-on: http://vgitil04.il.marvell.com:8080/37914
Diffstat (limited to 'drivers/io/io_fip.c')
-rw-r--r-- | drivers/io/io_fip.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/io/io_fip.c b/drivers/io/io_fip.c index 99cf15b9..bdacc9c0 100644 --- a/drivers/io/io_fip.c +++ b/drivers/io/io_fip.c @@ -299,7 +299,9 @@ static int fip_file_read(io_entity_t *entity, uintptr_t buffer, size_t length, uintptr_t backend_handle; assert(entity != NULL); +#ifndef PLAT_ALLOW_ZERO_ADDR_COPY assert(buffer != (uintptr_t)NULL); +#endif assert(length_read != NULL); assert(entity->info != (uintptr_t)NULL); |