common: rkimg: add sysmem overflow check
Change-Id: I9892482f672290dbc65cda7734b52bffba06996f Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
parent
2c66f6f37e
commit
0c4b2feaa3
|
|
@ -561,6 +561,9 @@ int boot_rockchip_image(struct blk_desc *dev_desc, disk_partition_t *boot_part)
|
||||||
fdt_ramdisk_skip_relocation();
|
fdt_ramdisk_skip_relocation();
|
||||||
hotkey_run(HK_SYSMEM);
|
hotkey_run(HK_SYSMEM);
|
||||||
|
|
||||||
|
/* Check sysmem overflow */
|
||||||
|
sysmem_overflow_check();
|
||||||
|
|
||||||
#if defined(CONFIG_ARM64)
|
#if defined(CONFIG_ARM64)
|
||||||
char cmdbuf[64];
|
char cmdbuf[64];
|
||||||
sprintf(cmdbuf, "booti 0x%lx 0x%lx:0x%x 0x%lx",
|
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);
|
hotkey_run(HK_SYSMEM);
|
||||||
|
|
||||||
|
/* Check sysmem overflow */
|
||||||
|
sysmem_overflow_check();
|
||||||
|
|
||||||
boot_lmb_init(&images);
|
boot_lmb_init(&images);
|
||||||
images.ep = kernel_addr_r;
|
images.ep = kernel_addr_r;
|
||||||
images.initrd_start = ramdisk_addr_r;
|
images.initrd_start = ramdisk_addr_r;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue