From: Ian Campbell Subject: Re: [PATCH RFC 5/7] xen: arm: rewrite start of day page table and cpu bring up Date: Fri, 20 Sep 2013 18:16:53 +0100 Message-ID: <1379697413.8994.44.camel@hastur.hellion.org.uk> References: <1379381846.11304.73.camel@hastur.hellion.org.uk> <1379382050-11821-5-git-send-email-ian.campbell@citrix.com> <20130919113652.GF52431@ocelot.phlegethon.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20130919113652.GF52431@ocelot.phlegethon.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Tim Deegan Cc: julien.grall@citrix.com, stefano.stabellini@eu.citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Thu, 2013-09-19 at 12:36 +0100, Tim Deegan wrote: > > > + mov r3, #0x0 > > + lsr r2, r8, #21 > > + lsl r2, r2, #21 /* r2: 2MB-aligned paddr of DTB */ > > + orr r2, r2, #PT_UPPER(MEM) > > + orr r2, r2, #PT_LOWER(MEM) /* r2:r3 := 2MB RAM incl. DTB */ > > + ldr r4, =BOOT_MISC_VIRT_START > > + mov r4, r4, lsr #18 /* Slot for BOOT_MISC_VIRT_START */ > > + strd r2, r3, [r1, r4] /* Map it in the early boot slot */ > > + dsb sy > > Do we need any TLB flushes here, since we're modifying the live > pagetables? I don't recall whether the ARM MMU is guaranteed not to > cache/prefetch negative results (like the x86 one is). My recollection is that it doesn't. Ian.