At the moment, when printing memory ranges during early boot, endpoints
of some ranges are printed as inclusive (RAM, RESVD, SHMEM) and some
as exclusive (Initrd, MODULE). Make the behavior consistent and print
all the endpoints as inclusive.
Signed-off-by: Michal Orzel <michal.orzel@amd.com>
Reviewed-by: Luca Fancellu <luca.fancellu@arm.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
return -EINVAL;
}
- printk("Initrd %"PRIpaddr"-%"PRIpaddr"\n", start, end);
+ printk("Initrd %"PRIpaddr"-%"PRIpaddr"\n", start, end - 1);
add_boot_module(BOOTMOD_RAMDISK, start, end-start, false);
printk("MODULE[%d]: %"PRIpaddr" - %"PRIpaddr" %-12s\n",
i,
mods->module[i].start,
- mods->module[i].start + mods->module[i].size,
+ mods->module[i].start + mods->module[i].size - 1,
boot_module_kind_as_string(mods->module[i].kind));
for ( i = 0; i < mem_resv->nr_banks; i++ )