[U-Boot] [U-Boot, v5, 2/9] armv8: New MMU setup code allowing to use 48+ bits PA/VA

Tom Rini trini at konsulko.com
Tue Sep 15 21:04:29 CEST 2015


On Mon, Sep 07, 2015 at 06:18:15PM +0300, Sergey Temerkhanov wrote:

> This patch adds code which sets up 2-level page tables on ARM64 thus
> extending available VA space. CPUs implementing 64k translation
> granule are able to use direct PA-VA mapping of the whole 48 bit
> address space.
> It also adds the ability to reset the SCTRL register at the very beginning
> of execution to avoid interference from stale mappings set up by early
> firmware/loaders/etc.
[snip]
> diff --git a/arch/arm/include/asm/global_data.h b/arch/arm/include/asm/global_data.h
> index 4e3ea55..723539c 100644
> --- a/arch/arm/include/asm/global_data.h
> +++ b/arch/arm/include/asm/global_data.h
> @@ -38,6 +38,7 @@ struct arch_global_data {
>  	unsigned long long timer_reset_value;
>  #if !(defined(CONFIG_SYS_ICACHE_OFF) && defined(CONFIG_SYS_DCACHE_OFF))
>  	unsigned long tlb_addr;
> +	unsigned long pmd_addr[CONFIG_SYS_PTL1_ENTRIES];
>  	unsigned long tlb_size;
>  #endif

This hunk causes massive build breakage on non-armv8:
       arm:  +   sama5d3_xplained_mmc
+(sama5d3_xplained_mmc) In file included from ../include/common.h:149:0,
+(sama5d3_xplained_mmc)                  from ../lib/asm-offsets.c:15:
+(sama5d3_xplained_mmc) ../arch/arm/include/asm/global_data.h:41:25: error: 'CONFIG_SYS_PTL1_ENTRIES' undeclared here (not in a function)
+(sama5d3_xplained_mmc)   unsigned long pmd_addr[CONFIG_SYS_PTL1_ENTRIES];
+(sama5d3_xplained_mmc)                          ^
+(sama5d3_xplained_mmc) make[2]: *** [lib/asm-offsets.s] Error 1
+(sama5d3_xplained_mmc) make[1]: *** [prepare0] Error 2
+(sama5d3_xplained_mmc) make: *** [sub-make] Error 2

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150915/c6f95f0b/attachment.sig>


More information about the U-Boot mailing list