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

[xen master] xen/arm32: head: Move earlyprintk 'hex' to .rodata.idmap



commit d5a2ff06b1f7868442f4a30ae44610fa19e6974c
Author:     Michal Orzel <michal.orzel@xxxxxxx>
AuthorDate: Mon Jan 15 13:48:58 2024 +0100
Commit:     Julien Grall <jgrall@xxxxxxxxxx>
CommitDate: Mon Jan 15 19:30:58 2024 +0000

    xen/arm32: head: Move earlyprintk 'hex' to .rodata.idmap
    
    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 99d7d4aa63..b488a21a71 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 */
 
--
generated by git-patchbot for /home/xen/git/xen.git#master



 


Rackspace

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