From mboxrd@z Thu Jan 1 00:00:00 1970 From: York Sun Date: Thu, 13 Feb 2014 09:29:08 -0800 Subject: [U-Boot] [PATCH 3/3] armv8/cache: Change cache invalidate and flush function In-Reply-To: <4997fa.12c4.144296ae1fc.Coremail.fenghua@phytium.com.cn> References: <1392069354-24578-1-git-send-email-yorksun@freescale.com> <1392069354-24578-3-git-send-email-yorksun@freescale.com> <4997fa.12c4.144296ae1fc.Coremail.fenghua@phytium.com.cn> Message-ID: <52FD00E4.3000603@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 02/12/2014 08:04 PM, FengHua wrote: > > > >> -----Original Messages----- >> From: "York Sun" >> Sent Time: 2014-02-11 05:55:54 (Tuesday) >> To: albert.u.boot at aribaud.net >> Cc: scottwood at freescale.com, "York Sun" , "David Feng" >> Subject: [PATCH 3/3] armv8/cache: Change cache invalidate and flush function >> >> diff --git a/arch/arm/cpu/armv8/start.S b/arch/arm/cpu/armv8/start.S >> index e70c51d..7b9ac21 100644 >> --- a/arch/arm/cpu/armv8/start.S >> +++ b/arch/arm/cpu/armv8/start.S >> @@ -65,9 +65,9 @@ reset: >> 0: >> >> /* Cache/BPB/TLB Invalidate */ >> - bl __asm_flush_dcache_all /* dCache clean&invalidate */ >> bl __asm_invalidate_icache_all /* iCache invalidate */ >> bl __asm_invalidate_tlb_all /* invalidate TLBs */ > How about remove the icache and tlb invalidate operations? We can move the calling of __asm_invalidate_tlb_all to before mmu_setup, and move calling __asm_invalidate_icache_all to before icache_enable. But leaving them here makes sense as the initial setup procedure. And more important, it won't get lost. These functions run very fast, not like invalidating dcache. York