From: Ian Campbell Subject: Re: [PATCH] xen/arm: UART addresses are not always aligned to a page. Date: Thu, 31 Oct 2013 16:15:39 +0000 Message-ID: <1383236139.25018.126.camel@dagon.hellion.org.uk> References: <526A55E2.10204@linaro.org> <1383010124-29105-1-git-send-email-jfraser@broadcom.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: Jon Fraser , Tim Deegan , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Wed, 2013-10-30 at 11:57 -0700, Julien Grall wrote: > On 28 October 2013 18:28, Jon Fraser wrote: > > /* Map the DTB in the boot misc slot */ > > diff --git a/xen/include/asm-arm/asm_defns.h b/xen/include/asm-arm/asm_defns.h > > index 36e72ff..5bcaa44 100644 > > --- a/xen/include/asm-arm/asm_defns.h > > +++ b/xen/include/asm-arm/asm_defns.h > > @@ -7,6 +7,9 @@ > > #endif > > #include > > > > +/* Offset in page of UART base address */ > > +#define UART_OFFSET (EARLY_UART_BASE_ADDRESS & ~PAGE_MASK) > > + > > Actually I would move this define in asm/early-printk.h. It's the best place. > Can you also rename the name to EARLY_UART_OFFSET? > > In order to avoid numerous FIXMAP(CONSOLE) + UART_OFFSET, is it > possible to create a define EARLY_UART_VIRTUAL_ADDRESS and use it > everywhere? I agree with all 3 suggestions here. Ian.