All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julien Grall <julien.grall@linaro.org>
To: Jon Fraser <jfraser@broadcom.com>,
	xen-devel@lists.xen.org, Ian Campbell <ian.campbell@citrix.com>,
	Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
	Tim Deegan <tim@xen.org>
Subject: Re: [PATCH] xen/arm: UART addresses are not always aligned to a page.
Date: Fri, 25 Oct 2013 12:28:34 +0100	[thread overview]
Message-ID: <526A55E2.10204@linaro.org> (raw)
In-Reply-To: <1382639749-27826-1-git-send-email-jfraser@broadcom.com>

(+Adding ARM maintainers)

Hi,

On 10/24/2013 07:35 PM, Jon Fraser wrote:
> Add the page offset of the UART to the mapped address.

Thanks for the patch, can you also modify arm64 code?

> Signed-off-by: Jon Fraser <jfraser@broadcom.com>
> ---
>   xen/arch/arm/arm32/debug.S | 5 +++--
>   xen/arch/arm/arm32/head.S  | 3 ++-
>   2 files changed, 5 insertions(+), 3 deletions(-)
>
> diff --git a/xen/arch/arm/arm32/debug.S b/xen/arch/arm/arm32/debug.S
> index ec774cd..e095911 100644
> --- a/xen/arch/arm/arm32/debug.S
> +++ b/xen/arch/arm/arm32/debug.S
> @@ -22,18 +22,19 @@
>   #ifdef EARLY_PRINTK_INC
>   #include EARLY_PRINTK_INC
>   #endif
> +#define UART_OFFSET (EARLY_UART_BASE_ADDRESS & ~PAGE_MASK)
>
>   /* Print a character on the UART - this function is called by C
>    * r0: character to print */
>   GLOBAL(early_putch)
> -        ldr   r1, =FIXMAP_ADDR(FIXMAP_CONSOLE)  /* r1 := VA UART base address */
> +        ldr   r1, =FIXMAP_ADDR(FIXMAP_CONSOLE) + UART_OFFSET  /* r1 := VA UART base address */

You use FIXMAP_ADDR(FIXMAP_CONSOLE) + UART_OFFSET in different files. 
How about creating a define EARLY_UART_VIRTUAL_ADDRESS in 
asm-arm/early_printk.h?

-- 
Julien Grall

  reply	other threads:[~2013-10-25 11:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-24 18:35 [PATCH] xen/arm: UART addresses are not always aligned to a page Jon Fraser
2013-10-25 11:28 ` Julien Grall [this message]
2013-10-25 22:43   ` Jon Fraser
2013-10-29  1:28   ` Jon Fraser
2013-10-30 18:57     ` Julien Grall
2013-10-31 16:15       ` Ian Campbell

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=526A55E2.10204@linaro.org \
    --to=julien.grall@linaro.org \
    --cc=ian.campbell@citrix.com \
    --cc=jfraser@broadcom.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=tim@xen.org \
    --cc=xen-devel@lists.xen.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.