[U-Boot] [PATCH] arm64: Keep macro PGTABLE_SIZE for non-full-va map

Alexander Graf agraf at suse.de
Mon Mar 21 20:12:04 CET 2016


On Mar 21, 2016, at 7:59 PM, York Sun <york.sun at nxp.com> wrote:

> Commit 7985cdf removed non-full-va map code, replaced PGTABLE_SIZE
> with get_page_table_size() function for all. It is incorrect for
> platforms with non-full-va mapping, at this moment Layerscape SoCs.
> 
> Signed-off-by: York Sun <york.sun at nxp.com>
> CC: Alexander Graf <agraf at suse.de>
> CC: Alison Wang <alison.wang at nxp.com>
> CC: Prabhakar Kushwaha <prabhakar.kushwaha at nxp.com>
> ---
> arch/arm/include/asm/system.h |    4 ++++
> 1 file changed, 4 insertions(+)
> 
> diff --git a/arch/arm/include/asm/system.h b/arch/arm/include/asm/system.h
> index ac1173d..fab6f0c 100644
> --- a/arch/arm/include/asm/system.h
> +++ b/arch/arm/include/asm/system.h
> @@ -20,7 +20,11 @@
> #ifndef __ASSEMBLY__
> 
> u64 get_page_table_size(void);
> +#ifdef CONFIG_SYS_FULL_VA

This macro doesn't exist anymore. We need to do something different. Let me cook up a patch.


Alex

> #define PGTABLE_SIZE	get_page_table_size()
> +#else
> +#define PGTABLE_SIZE 0x10000
> +#endif
> 
> /* 2MB granularity */
> #define MMU_SECTION_SHIFT	21
> -- 
> 1.7.9.5
> 



More information about the U-Boot mailing list