[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] bootfdt: Unify early printing of memory ranges endpoints
- To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Michal Orzel <michal.orzel@xxxxxxx>
- Date: Tue, 19 Nov 2024 12:51:41 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.12) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=qDZr6HYKgYn4piSi0T7rQP20QVZ0vgRurNpnxLL5qj0=; b=Q+bOVReoNnGmtviE4lYrnPKOHjW3O++UVmo9+uUG3W9NNrWsHNWwIkgr6/vo9WGqIAA90eULEJ2IQb98B9M/uWfFYZQGu+91fQ6dHqwYNvE3PuI+jtWKaGv5naxwvJyF/w/1io2CmDUwzO9ok/Ku4O18X4T26Bb4MafdDVBx8h0zkWM3VX+CZnWylSQXwISGRCwb9HrVlGmSc5pm69YJsJE4miePTEf0b1he2igV2eR5BchVKyWAzPA/Xvdp7lAijWNhKidwkbWLe3BfePapnXpco2AMDB5v/YHgamlv4V2Ip//qyYT0yA20TaBtrE98gaGWQgjaer16nm135y1dEQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=BpGvROoYf48QwT75cHi0ceBOESrnYJUVcCk9nrRIm4AfRfq9IJ1ewrzr5UvJ6myiRP3aNck/TxQHjLIc1fHpwEkZcBXLlNUt+kZp/PmZ/pNfwZ0U0wz7FbsPJBcNkkZjEEGmLTWHW9aT7AEdQ3BbrVPcgijofmCrRvi70XJRRk9hADEv5+fiM1n0D9c1LhKuM1dbpV/DITnlEewt13sHupZL/57pfMcVrploGoD4MK155qIY++6+66zDz8M1cHkmJY9NK2Ox+gV09SZUg2wRtrDIBsQA4gPJmsdCsRtU37/RLA8x0naGjWTEC9KMom/xgSmyunE5gZmUOy3a5GXjLA==
- Cc: Michal Orzel <michal.orzel@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>
- Delivery-date: Tue, 19 Nov 2024 11:52:29 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
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@xxxxxxx>
---
xen/common/device-tree/bootfdt.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/xen/common/device-tree/bootfdt.c b/xen/common/device-tree/bootfdt.c
index 927f59c64b0d..480644b4b421 100644
--- a/xen/common/device-tree/bootfdt.c
+++ b/xen/common/device-tree/bootfdt.c
@@ -439,7 +439,7 @@ static int __init process_chosen_node(const void *fdt, int
node,
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);
@@ -524,7 +524,7 @@ static void __init early_print_info(void)
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++ )
--
2.25.1
|