[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 1/6] xen/arm: Skip initializing the BSS section when it is empty
- To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx>
- Date: Thu, 10 Oct 2024 15:03:46 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) 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=VTS5053fXyYgQouB1JyqqibqFE9wN/f7atCB/eIP6wc=; b=byRIcKvlolCES8F5akyOxLzjz0dsJq0TXHGdbWWnx5bbCJNioLEmUzQ+7UN07EHpetNwE2vs2mqhowPhSKm/NuaOGe1qqcfQeLf+dDvEdeuPKirNJeLQgRdhAdMEuJ6zAozRinkhVFOP7uIPQUVELSCLy2LeeimZ/rcodfqkA/CnSkkjEQHBbteaWn3UW0QdER9frPrbCaBy6+r5v0+Czdka0KmJ23woWWOmLTSoB+KzIjwTqOCUJEGRjtq7hHR9HnkGomSHv4Y41MvROAO9f2HqeFPOsi5AumQz7LOBDDn7yrFyDEepP8t1r1Ml4xs8off1EOXu+lD84NKyGhKJQw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=hpBqMK4l3xZ2j/hJmq+48GMWetyBvvrm49ZyvuHKm6CrPO7eMbNvQLR35eoQC3NsH7naqFRZdCwFWkqI9QOxg+7ZOVLYZEwITv399NIJKisgG/DxQ5SasNAFeGmGBiUbhQlotqMp1ckIFTAcJkfuuQPhp/EtPVzIuKCkbRw5OMZxuHoKv+ZJJeMnY2r0Z/EzQ+MOt+/jCPEQrX7qFZ5a3J5Duo3q3SNWqEd6ATrjZO6zjPA5cI1WUnJ+B/8ea6TBMnzXbWlSuXcsMsLjTpG8NAXb7X42ltvu0vpsvZ53z/Aagg5lplBz19g5bgxwYk09e0AHFQZr5TbSwb1KCWIKjg==
- Cc: Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, "Volodymyr Babchuk" <Volodymyr_Babchuk@xxxxxxxx>
- Delivery-date: Thu, 10 Oct 2024 14:05:11 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
If the BSS section is empty, then the function can just return.
Signed-off-by: Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx>
---
Changes from :-
v1..v2 - New patch introduced in v3.
xen/arch/arm/arm64/head.S | 2 ++
1 file changed, 2 insertions(+)
diff --git a/xen/arch/arm/arm64/head.S b/xen/arch/arm/arm64/head.S
index 14c3720d80..72c7b24498 100644
--- a/xen/arch/arm/arm64/head.S
+++ b/xen/arch/arm/arm64/head.S
@@ -346,6 +346,8 @@ FUNC_LOCAL(zero_bss)
PRINT("- Zero BSS -\r\n")
ldr x0, =__bss_start /* x0 := vaddr(__bss_start) */
ldr x1, =__bss_end /* x1 := vaddr(__bss_end) */
+ cmp x1, x0
+ beq skip_bss
1: str xzr, [x0], #8
cmp x0, x1
--
2.25.1
|