From: Ian Campbell Subject: Re: [PATCH v2] xen/arm{32, 64}: fix section shift when mapping 2MB block in boot page table Date: Tue, 28 Jan 2014 11:37:02 +0000 Message-ID: <1390909022.7753.58.camel@kazak.uk.xensource.com> References: <1389651599-26562-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.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1W86yY-0008Ak-LA for xen-devel@lists.xenproject.org; Tue, 28 Jan 2014 11:37:06 +0000 In-Reply-To: <1389651599-26562-1-git-send-email-baozich@gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Chen Baozi Cc: xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org On Tue, 2014-01-14 at 06:19 +0800, Chen Baozi wrote: > ldr r4, =BOOT_FDT_VIRT_START > - mov r4, r4, lsr #18 /* Slot for BOOT_FDT_VIRT_START */ > + mov r4, r4, lsr #(SECOND_SHIFT) /* Slot for BOOT_FDT_VIRT_START */ Comparing the objdump before and after shows: @@ -299,7 +299,7 @@ 20041c: e3822c0e orr r2, r2, #3584 ; 0xe00 200420: e382207d orr r2, r2, #125 ; 0x7d 200424: e3a04606 mov r4, #6291456 ; 0x600000 - 200428: e1a04924 lsr r4, r4, #18 + 200428: e1a04aa4 lsr r4, r4, #21 20042c: e18120f4 strd r2, [r1, r4] 200430: f57ff04f dsb sy 200434: e28f0004 add r0, pc, #4 which I think is unexpected/incorrect. I think you wanted #(SECOND_SHIFT - 3) as elsewhere. The only other change to the binary was the expected s/20/21/ in both arm32 and arm64. Ian.