From: Chen Baozi Subject: [PATCH] xen/arm64: fix section shift when mapping 2MB block in boot page table Date: Tue, 14 Jan 2014 01:06:47 +0800 Message-ID: <1389632807-13005-1-git-send-email-baozich@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1W2ubX-0000l6-DR for xen-devel@lists.xenproject.org; Tue, 14 Jan 2014 03:23:51 +0000 Received: by mail-pd0-f179.google.com with SMTP id y10so1273346pdj.10 for ; Mon, 13 Jan 2014 19:23:47 -0800 (PST) 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.xenproject.org Cc: Chen Baozi List-Id: xen-devel@lists.xenproject.org Section shift for level-2 page table should be #21 rather than #20. Signed-off-by: Chen Baozi --- xen/arch/arm/arm64/head.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/arm/arm64/head.S b/xen/arch/arm/arm64/head.S index bebddf0..ad35f60 100644 --- a/xen/arch/arm/arm64/head.S +++ b/xen/arch/arm/arm64/head.S @@ -292,8 +292,8 @@ skip_bss: ldr x4, =boot_second add x4, x4, x20 /* x4 := paddr (boot_second) */ - lsr x2, x19, #20 /* Base address for 2MB mapping */ - lsl x2, x2, #20 + lsr x2, x19, #21 /* Base address for 2MB mapping */ + lsl x2, x2, #21 mov x3, #PT_MEM /* x2 := Section map */ orr x2, x2, x3 -- 1.8.4.3