From: Tom Rini Date: Tue, 15 Sep 2015 15:04:29 -0400 Subject: [U-Boot] [U-Boot, v5, 2/9] armv8: New MMU setup code allowing to use 48+ bits PA/VA In-Reply-To: <1441639105-25181-3-git-send-email-s.temerkhanov@gmail.com> References: <1441639105-25181-3-git-send-email-s.temerkhanov@gmail.com> Message-ID: <20150915190429.GA17754@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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: