aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/io/io_memmap.c
diff options
context:
space:
mode:
authorKonstantin Porotchkin <kostap@marvell.com>2018-05-07 12:52:48 +0300
committerKonstantin Porotchkin <kostap@marvell.com>2018-07-18 18:48:30 +0300
commit255f5c8f8879da6b28a48a01291dd52e99029425 (patch)
tree6cf02ef119b8b28f3020bf6643df883158268307 /drivers/io/io_memmap.c
parent34ec7ec3102fc8877618d372c6ee40b26a5acf34 (diff)
downloadplatform_external_arm-trusted-firmware-255f5c8f8879da6b28a48a01291dd52e99029425.tar.gz
platform_external_arm-trusted-firmware-255f5c8f8879da6b28a48a01291dd52e99029425.tar.bz2
platform_external_arm-trusted-firmware-255f5c8f8879da6b28a48a01291dd52e99029425.zip
io: Allow image load to address zero
Remove assert on buffer address equal zero. Marvell uses address 0x0 for loading BL33, so this check is irrelevant and breaks the debug builds on Marvell platforms. Change-Id: Ie56a51138e2e4ddd8986dd7036797dc2d8b10125 Signed-off-by: Haim Boot <hayim@marvell.com> Signed-off-by: Konstantin Porotchkin <kostap@marvell.com> Reviewed-on: http://vgitil04.il.marvell.com:8080/54589
Diffstat (limited to 'drivers/io/io_memmap.c')
-rw-r--r--drivers/io/io_memmap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/io/io_memmap.c b/drivers/io/io_memmap.c
index bf59d6a5c..5595e60a4 100644
--- a/drivers/io/io_memmap.c
+++ b/drivers/io/io_memmap.c
@@ -9,6 +9,7 @@
#include <io_driver.h>
#include <io_memmap.h>
#include <io_storage.h>
+#include <platform_def.h>
#include <string.h>
#include <utils.h>
@@ -169,7 +170,6 @@ static int memmap_block_read(io_entity_t *entity, uintptr_t buffer,
size_t pos_after;
assert(entity != NULL);
- assert(buffer != (uintptr_t)NULL);
assert(length_read != NULL);
fp = (file_state_t *) entity->info;
@@ -197,7 +197,6 @@ static int memmap_block_write(io_entity_t *entity, const uintptr_t buffer,
size_t pos_after;
assert(entity != NULL);
- assert(buffer != (uintptr_t)NULL);
assert(length_written != NULL);
fp = (file_state_t *) entity->info;