[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/2] xen/arm32: head: Move earlyprintk 'hex' to .rodata.idmap


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Michal Orzel <michal.orzel@xxxxxxx>
  • Date: Mon, 15 Jan 2024 13:48:58 +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=arcselector9901; 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=NLBQvLoHCOj3N6IhMseZ9rkZSOpJyYpqguK/QdlO4GY=; b=QFpRYKXAqpS1RS80b58sZn2kw3nbgFQytrAwZlhA1eg82jZG6yhjX73pvlWfzhVU25rkYXgoqcITIz+vh5aeEkNG6FpDrYvfmMbP7/sEdY9gTPKAYR8PQmQKuaRmfbUIBmG0azk2WDt90HdzLsc4TT5bvRfYJHc1EEHZC/odviLkcwMKUz8hJcZbevikKkWR8LBZgCc4mBS7TaotwPS3PxW5gzpOxHfSKMNiXToUnjxBbdLgbVlgVM93i6eFTWvVKU0x+jhjEMg2EMdNvO+zkjyS8v9iPmEqoDKezktmM+kRJtI4goqwEBIEDntechCXRuFQ1ulMWvWYfwcB0xnRCg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FKmMFSEfMJ+ZVtIXPoyyftDWjy+dwkminu0WjVcIuu0DF2m1A8IRyfMEnRKHuy9V0zVUWRmOj7xQqNx0lcU/1bgaz+Nvg51n7/KuRdW7++TX15w/Hjls5ig+w/FQHCrndBhMgNlUdxeGdtVNeoITMcWaYCqm0G6iBlv69w1ZOAYDlVATfHUUbriLokMnl2bTgyD3U9RscOvrA90JUEnHp9GQ7OKJoF6gkyM51Jid8S82YUd3HzXyhC4Q07WofDMoOc7AM2zD8XOVYoyfj3YPdTGfI70c4bmntA38/WLo52p7SoraXQMdkOS4Hd44pemqOj6Ge8r4D2wuBLtO9OEadg==
  • Cc: Michal Orzel <michal.orzel@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Mon, 15 Jan 2024 12:49:21 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Thanks to 1ec3fe1f664f ("xen/arm32: head: Improve logging in head.S"),
we can now use PRINT_ID() macro to print messages when running on
identity mapping. For that, all the strings need to be part of the first
page that is mapped. This is not the case for a 'hex' string (used by
asm_putn when printing register values), which currently resides in
.rodata.str. Move it to .rodata.idmap to allow making use of print_reg
macro from anywhere (mostly to aid debugging).

Signed-off-by: Michal Orzel <michal.orzel@xxxxxxx>
---
 xen/arch/arm/arm32/head.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/arch/arm/arm32/head.S b/xen/arch/arm/arm32/head.S
index 99d7d4aa63d1..b488a21a71ba 100644
--- a/xen/arch/arm/arm32/head.S
+++ b/xen/arch/arm/arm32/head.S
@@ -320,7 +320,7 @@ ENTRY(asm_putn)
         mov   pc, lr
 ENDPROC(asm_putn)
 
-RODATA_STR(hex, "0123456789abcdef")
+RODATA_SECT(.rodata.idmap, hex, "0123456789abcdef")
 
 #endif /* CONFIG_EARLY_PRINTK */
 
-- 
2.25.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.