int board_late_init(void)
{
ulong max_size, lowmem_size;
+ u32 status = 0;
#if !defined(CONFIG_SPL_BUILD) && defined(CONFIG_SYSRESET_MICROBLAZE)
int ret;
/* Linux default LOWMEM_SIZE is 0x30000000 = 768MB */
lowmem_size = gd->ram_base + 768 * 1024 * 1024;
- env_set_addr("initrd_high", (void *)min_t(ulong, max_size,
- lowmem_size));
- env_set_addr("fdt_high", (void *)min_t(ulong, max_size, lowmem_size));
+ status |= env_set_addr("initrd_high", (void *)min_t(ulong, max_size,
+ lowmem_size));
+ status |= env_set_addr("fdt_high", (void *)min_t(ulong, max_size,
+ lowmem_size));
+ if (status)
+ printf("%s: Saving run time variables FAILED\n", __func__);
return 0;
}