From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Vrabel Subject: [PATCH 4/7] arm: map device tree blob in initial page tables Date: Fri, 3 Feb 2012 19:15:12 +0000 Message-ID: <1328296515-25876-5-git-send-email-david.vrabel@citrix.com> References: <1328296515-25876-1-git-send-email-david.vrabel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1328296515-25876-1-git-send-email-david.vrabel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: David Vrabel List-Id: xen-devel@lists.xenproject.org From: David Vrabel Add a 1:1 mapping for the device tree blob in the initial page tables. This will allow the DTB to be parsed for memory information prior to setting up the real page tables. Signed-off-by: David Vrabel --- xen/arch/arm/head.S | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/xen/arch/arm/head.S b/xen/arch/arm/head.S index 9951f37..8385481 100644 --- a/xen/arch/arm/head.S +++ b/xen/arch/arm/head.S @@ -202,6 +202,11 @@ hyp: add r4, r4, #8 strd r2, r3, [r1, r4] /* Map it in the fixmap's slot */ #endif + mov r3, #0x0 + orr r2, r8, #0xe00 + orr r2, r2, #0x07d + mov r4, r8, lsr #18 /* Slot for (r8 == atag_paddr) */ + strd r2, r3, [r1, r4] /* Map DTB there */ PRINT("- Turning on paging -\r\n") -- 1.7.2.5