common: rkimg: add sysmem overflow check

Change-Id: I9892482f672290dbc65cda7734b52bffba06996f
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
Joseph Chen 2019-06-25 21:04:01 +08:00 committed by Jianhong Chen
parent 2c66f6f37e
commit 0c4b2feaa3
1 changed files with 6 additions and 0 deletions

View File

@ -561,6 +561,9 @@ int boot_rockchip_image(struct blk_desc *dev_desc, disk_partition_t *boot_part)
fdt_ramdisk_skip_relocation();
hotkey_run(HK_SYSMEM);
/* Check sysmem overflow */
sysmem_overflow_check();
#if defined(CONFIG_ARM64)
char cmdbuf[64];
sprintf(cmdbuf, "booti 0x%lx 0x%lx:0x%x 0x%lx",
@ -587,6 +590,9 @@ int boot_rockchip_image(struct blk_desc *dev_desc, disk_partition_t *boot_part)
hotkey_run(HK_SYSMEM);
/* Check sysmem overflow */
sysmem_overflow_check();
boot_lmb_init(&images);
images.ep = kernel_addr_r;
images.initrd_start = ramdisk_addr_r;