All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Orzel <michal.orzel@arm.com>
To: Julien Grall <julien@xen.org>, xen-devel@lists.xenproject.org
Cc: Julien Grall <jgrall@amazon.com>,
	Stefano Stabellini <sstabellini@kernel.org>,
	Bertrand Marquis <bertrand.marquis@arm.com>,
	Volodymyr Babchuk <Volodymyr_Babchuk@epam.com>
Subject: Re: [PATCH 2/7] xen/arm32: head.S: Introduce a macro to load the physical address of a symbol
Date: Mon, 27 Jun 2022 08:31:13 +0200	[thread overview]
Message-ID: <1218329a-13a3-79b6-6753-c2c9a0c45b2d@arm.com> (raw)
In-Reply-To: <20220624091146.35716-3-julien@xen.org>

Hi Julien,

On 24.06.2022 11:11, Julien Grall wrote:
> From: Julien Grall <jgrall@amazon.com>
> 
> A lot of places in the ARM32 assembly requires to load the physical address
> of a symbol. Rather than open-coding the translation, introduce a new macro
> that will load the phyiscal address of a symbol.
> 
> Lastly, use the new macro to replace all the current open-coded version.
> 
> Note that most of the comments associated to the code changed have been
> removed because the code is now self-explanatory.
> 
> Signed-off-by: Julien Grall <jgrall@amazon.com>
> ---
>  xen/arch/arm/arm32/head.S | 23 +++++++++++------------
>  1 file changed, 11 insertions(+), 12 deletions(-)
> 
> diff --git a/xen/arch/arm/arm32/head.S b/xen/arch/arm/arm32/head.S
> index c837d3054cf9..77f0a619ca51 100644
> --- a/xen/arch/arm/arm32/head.S
> +++ b/xen/arch/arm/arm32/head.S
> @@ -65,6 +65,11 @@
>          .endif
>  .endm
>  
> +.macro load_paddr rb, sym
> +        ldr   \rb, =\sym
> +        add   \rb, \rb, r10
> +.endm
> +
All the macros in this file have a comment so it'd be useful to follow this convention.
Apart from that:
Reviewed-by: Michal Orzel <michal.orzel@arm.com>

Cheers,
Michal


  reply	other threads:[~2022-06-27  6:31 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-24  9:11 [PATCH 0/7] xen/arm: mm: Bunch of clean-ups Julien Grall
2022-06-24  9:11 ` [PATCH 1/7] xen/arm: Remove most of the *_VIRT_END defines Julien Grall
2022-06-27  6:23   ` Michal Orzel
2022-06-27  9:48     ` Julien Grall
2022-06-24  9:11 ` [PATCH 2/7] xen/arm32: head.S: Introduce a macro to load the physical address of a symbol Julien Grall
2022-06-27  6:31   ` Michal Orzel [this message]
2022-06-27  9:52     ` Julien Grall
2022-06-27  9:59       ` Michal Orzel
2022-06-27 10:09         ` Julien Grall
2022-06-27 13:59           ` Bertrand Marquis
2022-06-24  9:11 ` [PATCH 3/7] xen/arm: head: Add missing isb after writing to SCTLR_EL2/HSCTLR Julien Grall
2022-06-27  6:36   ` Michal Orzel
2022-06-27 14:00   ` Bertrand Marquis
2022-06-24  9:11 ` [PATCH 4/7] xen/arm: mm: Add more ASSERT() in {destroy, modify}_xen_mappings() Julien Grall
2022-06-27  6:45   ` Michal Orzel
2022-07-04 12:35   ` Bertrand Marquis
2022-07-16 14:38     ` Julien Grall
2022-07-18  8:47       ` Jan Beulich
2022-07-18 14:06         ` Julien Grall
2022-06-24  9:11 ` [PATCH 5/7] xen/arm32: mm: Consolidate the domheap mappings initialization Julien Grall
2022-06-27  7:24   ` Michal Orzel
2022-06-30 23:09     ` Julien Grall
2022-06-24  9:11 ` [PATCH 6/7] xen/arm: mm: Move domain_{,un}map_* helpers in a separate file Julien Grall
2022-06-24  9:43   ` Jan Beulich
2022-07-16 15:00     ` Julien Grall
2022-06-24  9:11 ` [PATCH 7/7] xen/arm: mm: Reduce the area that xen_second covers Julien Grall
2022-06-27  7:51   ` Michal Orzel
2022-07-17 13:06     ` Julien Grall

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1218329a-13a3-79b6-6753-c2c9a0c45b2d@arm.com \
    --to=michal.orzel@arm.com \
    --cc=Volodymyr_Babchuk@epam.com \
    --cc=bertrand.marquis@arm.com \
    --cc=jgrall@amazon.com \
    --cc=julien@xen.org \
    --cc=sstabellini@kernel.org \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.