From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1bD4Oe-0008OH-MT for barebox@lists.infradead.org; Wed, 15 Jun 2016 06:33:53 +0000 Date: Wed, 15 Jun 2016 08:33:29 +0200 From: Sascha Hauer Message-ID: <20160615063329.GE9677@pengutronix.de> References: <1465888006-39463-1-git-send-email-poggi.raph@gmail.com> <1465888006-39463-2-git-send-email-poggi.raph@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1465888006-39463-2-git-send-email-poggi.raph@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH v2 01/12] arm: add armv8 Kconfig entries To: Raphael Poggi Cc: barebox@lists.infradead.org Hi Raphael, On Tue, Jun 14, 2016 at 09:06:35AM +0200, Raphael Poggi wrote: > Signed-off-by: Raphael Poggi > --- > arch/arm/Kconfig | 23 +++++++++++++++++++++++ > arch/arm/cpu/Kconfig | 29 ++++++++++++++++++++++++++++- > 2 files changed, 51 insertions(+), 1 deletion(-) > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > index 1fc887b..986fdaa 100644 > --- a/arch/arm/Kconfig > +++ b/arch/arm/Kconfig > @@ -315,6 +315,29 @@ config ARM_BOARD_APPEND_ATAG > > endmenu > > +choice > + prompt "Barebox code model" > + help > + You should only select this option if you have a workload that > + actually benefits from 64-bit processing or if your machine has > + large memory. You will only be presented a single option in this > + menu if your system does not support both 32-bit and 64-bit modes. > + > +config 32BIT > + bool "32-bit barebox" > + depends on CPU_SUPPORTS_32BIT_KERNEL && SYS_SUPPORTS_32BIT_KERNEL > + help > + Select this option if you want to build a 32-bit barebox. > + > +config 64BIT > + bool "64-bit barebox" > + depends on CPU_SUPPORTS_64BIT_KERNEL && SYS_SUPPORTS_64BIT_KERNEL > + select ARCH_DMA_ADDR_T_64BIT > + help > + Select this option if you want to build a 64-bit barebox. > + > +endchoice > + > menu "ARM specific settings" > > config ARM_OPTIMZED_STRING_FUNCTIONS > diff --git a/arch/arm/cpu/Kconfig b/arch/arm/cpu/Kconfig arm64 needs 64bit pointers. You could merge the following to this patch to make resource_size_t 64bit wide and to get rid of the "warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]" warnings. Sascha >From 599547f4054ca715f66a83bf49dc9293e3cc0af0 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Wed, 15 Jun 2016 08:29:51 +0200 Subject: [PATCH] arm64: select PHYS_ADDR_T_64BIT Signed-off-by: Sascha Hauer --- arch/arm/cpu/Kconfig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/cpu/Kconfig b/arch/arm/cpu/Kconfig index fd327a8..c90501e 100644 --- a/arch/arm/cpu/Kconfig +++ b/arch/arm/cpu/Kconfig @@ -1,9 +1,13 @@ comment "Processor Type" +config PHYS_ADDR_T_64BIT + bool + config CPU_32 bool config CPU_64 + select PHYS_ADDR_T_64BIT bool # Select CPU types depending on the architecture selected. This selects -- 2.8.1 -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox