Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DB680C433EF for ; Thu, 21 Apr 2022 14:09:15 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CBAB783DE1; Thu, 21 Apr 2022 16:09:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1650550154; bh=KAmMvHBq7CH0ZQHVKew8zRTiY7JzFyEUk+O476xBxJ0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=n7yEDJdfHIJ44Uu/UksGGwas71AqKhGFKAoCX6wX8U9Uo/ZpzvfjO3elwJYFjUX7A HUdSCLmhln18S3kHQmFYxdQgWQcPU1qDhC03kYEKuXVq7fGdgwxl0X8q3J8lDFn/co gu0nBbiEDDprRqXQuW3yPLOvjg1uqaOfvpaElM8El+lyIJ7sAb+2AFOdenIFYmp0Ud TSQDX4K0i6R9ZS6UKZvE4Sa3eMvNDdEG5CZU5GaClfwHZEbYDOjbTtGNGbTEkcEE74 s6QUGz0ZU72ygEk86yPtUYWnU7CDhL6rk8FI2r8BHenG1tzhNroWH6C83YA32oG/Wq TZWyV11yljQNA== Received: by phobos.denx.de (Postfix, from userid 109) id 4D1C383DE7; Thu, 21 Apr 2022 16:09:12 +0200 (CEST) Received: from mout-u-107.mailbox.org (mout-u-107.mailbox.org [IPv6:2001:67c:2050:101:465::107]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 9B44C83BF4 for ; Thu, 21 Apr 2022 16:09:09 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sr@denx.de Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-107.mailbox.org (Postfix) with ESMTPS id 4KkfY145NWz9sRT; Thu, 21 Apr 2022 16:09:09 +0200 (CEST) Message-ID: Date: Thu, 21 Apr 2022 16:09:00 +0200 MIME-Version: 1.0 Subject: Re: [PATCH u-boot-marvell v2 1/3] arm: Introduce new CONFIG_SPL_SYS_NO_VECTOR_TABLE option Content-Language: en-US To: =?UTF-8?Q?Pali_Roh=c3=a1r?= , Andre Przywara , Chia-Wei Wang Cc: =?UTF-8?Q?Marek_Beh=c3=ban?= , u-boot@lists.denx.de References: <20220215190233.16248-1-pali@kernel.org> <20220406142020.24984-1-pali@kernel.org> From: Stefan Roese In-Reply-To: <20220406142020.24984-1-pali@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean On 4/6/22 16:20, Pali Rohár wrote: > Move OMAP4 specific option for disabling overwriting vector table into > config option CONFIG_SPL_SYS_NO_VECTOR_TABLE. > > Signed-off-by: Pali Rohár Applied to u-boot-marvell/master Thanks, Stefan > --- > arch/arm/Kconfig | 4 ++++ > arch/arm/cpu/armv7/start.S | 4 +--- > arch/arm/mach-omap2/Kconfig | 1 + > 3 files changed, 6 insertions(+), 3 deletions(-) > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > index 4567c183fb84..1be8d4470ec1 100644 > --- a/arch/arm/Kconfig > +++ b/arch/arm/Kconfig > @@ -57,6 +57,10 @@ config SYS_INIT_SP_BSS_OFFSET > that the early malloc region, global data (gd), and early stack usage > do not overlap any appended DTB. > > +config SPL_SYS_NO_VECTOR_TABLE > + depends on SPL > + bool > + > config LINUX_KERNEL_IMAGE_HEADER > depends on ARM64 > bool > diff --git a/arch/arm/cpu/armv7/start.S b/arch/arm/cpu/armv7/start.S > index af87a5432ae5..37036128a785 100644 > --- a/arch/arm/cpu/armv7/start.S > +++ b/arch/arm/cpu/armv7/start.S > @@ -97,12 +97,10 @@ switch_to_hypervisor_ret: > orr r0, r0, #0xc0 @ disable FIQ and IRQ > msr cpsr,r0 > > +#if !CONFIG_IS_ENABLED(SYS_NO_VECTOR_TABLE) > /* > * Setup vector: > - * (OMAP4 spl TEXT_BASE is not 32 byte aligned. > - * Continue to use ROM code vector only in OMAP4 spl) > */ > -#if !(defined(CONFIG_OMAP44XX) && defined(CONFIG_SPL_BUILD)) > /* Set V=0 in CP15 SCTLR register - for VBAR to point to vector */ > mrc p15, 0, r0, c1, c0, 0 @ Read CP15 SCTLR Register > bic r0, #CR_V @ V = 0 > diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig > index 263142683b04..e1b9180a3bb3 100644 > --- a/arch/arm/mach-omap2/Kconfig > +++ b/arch/arm/mach-omap2/Kconfig > @@ -32,6 +32,7 @@ config OMAP34XX > config OMAP44XX > bool "OMAP44XX SoC" > select SPL_USE_TINY_PRINTF > + select SPL_SYS_NO_VECTOR_TABLE if SPL > imply NAND_OMAP_ELM > imply NAND_OMAP_GPMC > imply SPL_DISPLAY_PRINT Viele Grüße, Stefan Roese -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr@denx.de