From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: [PATCH RFC 1/7] xen: arm: Load xen under 4GB on 32-bit Date: Tue, 17 Sep 2013 02:40:44 +0100 Message-ID: <1379382050-11821-1-git-send-email-ian.campbell@citrix.com> References: <1379381846.11304.73.camel@hastur.hellion.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1379381846.11304.73.camel@hastur.hellion.org.uk> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: julien.grall@citrix.com, tim@xen.org, Ian Campbell , stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org We need to be able to use a 1:1 mapping during bring up. Signed-off-by: Ian Campbell --- xen/arch/arm/setup.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/xen/arch/arm/setup.c b/xen/arch/arm/setup.c index 4b31623..d0220d9 100644 --- a/xen/arch/arm/setup.c +++ b/xen/arch/arm/setup.c @@ -258,6 +258,14 @@ static paddr_t __init get_xen_paddr(void) if ( !e ) continue; +#ifdef CONFIG_ARM_32 + /* Xen must be under 4GB */ + if ( e > 0x100000000ULL ) + e = 0x100000000ULL; + if ( e < bank->start ) + continue; +#endif + s = e - min_size; if ( s > paddr ) -- 1.8.3.2