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

Re: [Xen-devel] [PATCH] xen/arm: UART addresses are not always aligned to a page.



Sure, I'll do the arm64 side and fix the include file issue.
Won't be until Monday.

Jon

-----Original Message-----
From: Julien Grall <julien.grall@xxxxxxxxxx>
To: Jon Fraser <jfraser@xxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxx, Ian
Campbell <ian.campbell@xxxxxxxxxx>, Stefano Stabellini
<stefano.stabellini@xxxxxxxxxxxxx>, Tim Deegan <tim@xxxxxxx>
Subject: Re: [Xen-devel] [PATCH] xen/arm: UART addresses are not always
aligned to a page.
Date: Fri, 25 Oct 2013 12:28:34 +0100

(+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@xxxxxxxxxxxx>
> ---
>   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?





_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

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