From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert ARIBAUD Date: Fri, 27 Mar 2015 16:42:28 +0100 Subject: [U-Boot] [PATCH] ARMv8: bug fix of mmu setup and code optimization In-Reply-To: <1422694937-42639-1-git-send-email-fenghua@phytium.com.cn> References: <1422694937-42639-1-git-send-email-fenghua@phytium.com.cn> Message-ID: <20150327164228.483ae603@lilith> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello fenghua at phytium.com.cn, On Sat, 31 Jan 2015 17:02:17 +0800, fenghua at phytium.com.cn wrote: > From: David Feng > > 1. Fix a bug of mmu_setup that variable i and j should be > type long instead of int. > 2. Give mmu_setup weak attribute so that other implementation > can redfine it. > 3. A more common set_pgtable_section(). > 4. Give device memory PXN and UXN attribute. CPU may speculatively > prefetch instructions from device memory, but the IO subsystem of > some implementation may not support this operation. The two > attributes prevent this behavior. > > Signed-off-by: David Feng > --- > arch/arm/cpu/armv8/cache_v8.c | 73 +++++++++++++++++++++++------------- > arch/arm/cpu/armv8/fsl-lsch3/cpu.c | 22 +++++------ > arch/arm/include/asm/armv8/mmu.h | 71 +++++++++++++++++++---------------- > 3 files changed, 95 insertions(+), 71 deletions(-) This patch does not apply on current ARM tree; at least part of it must be rewritten. Amicalement, -- Albert.