[U-Boot] [PATCH] ARMv8: bug fix of mmu setup and code optimization

Albert ARIBAUD albert.u.boot at aribaud.net
Fri Mar 27 16:42:28 CET 2015


Hello fenghua at phytium.com.cn,

On Sat, 31 Jan 2015 17:02:17 +0800, fenghua at phytium.com.cn
<fenghua at phytium.com.cn> wrote:
> From: David Feng <fenghua at phytium.com.cn>
> 
> 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 <fenghua at phytium.com.cn>
> ---
>  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.


More information about the U-Boot mailing list