[U-Boot] [U-Boot, v5, 2/9] armv8: New MMU setup code allowing to use 48+ bits PA/VA
Sergei Temerkhanov
s.temerkhanov at gmail.com
Thu Sep 17 18:22:22 CEST 2015
On Tue, Sep 15, 2015 at 10:04 PM, Tom Rini <trini at konsulko.com> wrote:
> 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
Needs a protective conditional, thanks for feedback
Regards,
Sergey
More information about the U-Boot
mailing list