arm/bootm: fix initrd_start init
initrd_start need to be init to data->initrd_address and updated only if the addr is invalid. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
This commit is contained in:
parent
58713d3274
commit
5bc3870d67
|
@ -58,7 +58,9 @@ static int __do_bootm_linux(struct image_data *data, int swap)
|
|||
|
||||
kernel = data->os_res->start + data->os_entry;
|
||||
|
||||
if (data->initrd_file && data->initrd_address == UIMAGE_INVALID_ADDRESS) {
|
||||
initrd_start = data->initrd_address;
|
||||
|
||||
if (data->initrd_file && initrd_start == UIMAGE_INVALID_ADDRESS) {
|
||||
initrd_start = data->os_res->start + SZ_8M;
|
||||
|
||||
if (bootm_verbose(data)) {
|
||||
|
|
Loading…
Reference in New Issue