fix(plat/rcar): fix to load image when option BL2_DCACHE_ENABLE is enabled
- Modify load destination variable of the Cert Header to static. - Modify the return value to error (IO_FAIL) when failed to check the Cert Header. Signed-off-by: Koichi Yamaguchi <koichi.yamaguchi.zb@hitachi.com> Signed-off-by: Toshiyuki Ogasahara <toshiyuki.ogasahara.bo@hitachi.com> Signed-off-by: Yoshifumi Hosoya <yoshifumi.hosoya.wj@renesas.com> Change-Id: Ief09a841ec8d2ae236de82d04855e6a47cfb43f0
This commit is contained in:
parent
3deb060015
commit
d2ece8dba2
|
@ -380,7 +380,7 @@ static int32_t load_bl33x(void)
|
||||||
|
|
||||||
static int32_t rcar_dev_init(io_dev_info_t *dev_info, const uintptr_t name)
|
static int32_t rcar_dev_init(io_dev_info_t *dev_info, const uintptr_t name)
|
||||||
{
|
{
|
||||||
uint64_t header[64] __aligned(FLASH_TRANS_SIZE_UNIT) = {0UL};
|
static uint64_t header[64] __aligned(FLASH_TRANS_SIZE_UNIT) = {0UL};
|
||||||
uintptr_t handle;
|
uintptr_t handle;
|
||||||
ssize_t offset;
|
ssize_t offset;
|
||||||
uint32_t i;
|
uint32_t i;
|
||||||
|
@ -440,6 +440,7 @@ static int32_t rcar_dev_init(io_dev_info_t *dev_info, const uintptr_t name)
|
||||||
|
|
||||||
if (rcar_image_number == 0 || rcar_image_number > RCAR_MAX_BL3X_IMAGE) {
|
if (rcar_image_number == 0 || rcar_image_number > RCAR_MAX_BL3X_IMAGE) {
|
||||||
WARN("Firmware Image Package header check failed.\n");
|
WARN("Firmware Image Package header check failed.\n");
|
||||||
|
rc = IO_FAIL;
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue