From patchwork Sun Dec 11 13:11:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: afzal mohammed X-Patchwork-Id: 9469771 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A331D60231 for ; Sun, 11 Dec 2016 13:13:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9CC5928399 for ; Sun, 11 Dec 2016 13:13:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8E75F28481; Sun, 11 Dec 2016 13:13:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 29B0328399 for ; Sun, 11 Dec 2016 13:13:57 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cG3vg-0007Bz-Q9; Sun, 11 Dec 2016 13:12:36 +0000 Received: from mail-pf0-x244.google.com ([2607:f8b0:400e:c00::244]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cG3vb-0006vh-Ir for linux-arm-kernel@lists.infradead.org; Sun, 11 Dec 2016 13:12:32 +0000 Received: by mail-pf0-x244.google.com with SMTP id i88so3190451pfk.2 for ; Sun, 11 Dec 2016 05:12:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=CjupcYeIqsTPybg5zQW9qsYtJ2IQmPkh85utzB+x/gc=; b=oZSis++TSmzadXXM+d2v4n9tbtECnhkbFwOMiVA5QNVBECNorssB5MuvYXKTjvfmKF KnT8xpD4LdLR8KwPzU9gSmI/fgMSWyKkD9zBefqMoPHMesNvUID3ax+5ZT54WhatvynL 4yvVuNVcbgMabVl7gHx83auPIvycdbrR3Z1Z0c4bESc6a36oV1hR5HcUVABaojYMb+yF fKicyIPXdqV0/iImSjErBmu4+4eCEy2BDHiLJLm3YevMFQAlf4FHbuIAG13+XXp5WvoA xJCqtA++lFtej28jy64OZGkdu5dQ6mLde5ppwzD46J0CIim1AXGEa3/Pd8fO3QrmCuxQ cEYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=CjupcYeIqsTPybg5zQW9qsYtJ2IQmPkh85utzB+x/gc=; b=LR7r/gUHv/sxQFckQPTodXja5z1ox+7k95qdKpG1ZY1Ygx00iZpx8EvW6EFhN4UTb0 jUDzp6V8IjtrMmspxXYseo9p31VrLeoQPPbHaZPShwIvDaTLZXsHOMGz9mlzDnsvjPBI dN8dp2ThMG4jWKl7nDzFuiM885rwOJLqA7wp0IhrTJqO3Q498SZQOwudDHEKXH348FlX Ja1aqO1SAX6Qed5RQxnSagrCJoD/4TREDmPi+uT9XWyzghJjaJgBu7ChOcMk9V1DSw70 CNkMyTWvkovIR5nW/ndGxVy2nTbd2so14fXCweDx9TQ1ofTj4/KzUduol5Navk5imRMh AF4A== X-Gm-Message-State: AKaTC031OGQtKB9DJKYjKk5Yd89/o9/GP8Z1Nwkn64fDuX4tKZlTjRFxuDNr4WWpF/qFzA== X-Received: by 10.98.160.29 with SMTP id r29mr93304991pfe.103.1481461930188; Sun, 11 Dec 2016 05:12:10 -0800 (PST) Received: from localhost.localdomain ([27.107.107.80]) by smtp.gmail.com with ESMTPSA id 135sm70305353pgc.7.2016.12.11.05.12.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 11 Dec 2016 05:12:09 -0800 (PST) From: Afzal Mohammed To: Russell King , Vladimir Murzin , Arnd Bergmann , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] ARM: nommu: allow enabling REMAP_VECTORS_TO_RAM Date: Sun, 11 Dec 2016 18:41:58 +0530 Message-Id: <20161211131158.3120-1-afzal.mohd.ma@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20161211131028.3019-1-afzal.mohd.ma@gmail.com> References: <20161211131028.3019-1-afzal.mohd.ma@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161211_051231_757138_CAC10358 X-CRM114-Status: GOOD ( 11.72 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Afzal Mohammed MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP REMAP_VECTORS_TO_RAM depends on DRAM_BASE, but since DRAM_BASE is a hex, REMAP_VECTORS_TO_RAM could never get enabled. Also depending on DRAM_BASE is redundant as whenever REMAP_VECTORS_TO_RAM makes itself available to Kconfig, DRAM_BASE also is available as the Kconfig gets sourced on !MMU. Signed-off-by: Afzal Mohammed Reviewed-by: Vladimir Murzin --- arch/arm/Kconfig-nommu | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm/Kconfig-nommu b/arch/arm/Kconfig-nommu index aed66d5df7f1..b7576349528c 100644 --- a/arch/arm/Kconfig-nommu +++ b/arch/arm/Kconfig-nommu @@ -34,8 +34,7 @@ config PROCESSOR_ID used instead of the auto-probing which utilizes the register. config REMAP_VECTORS_TO_RAM - bool 'Install vectors to the beginning of RAM' if DRAM_BASE - depends on DRAM_BASE + bool 'Install vectors to the beginning of RAM' help The kernel needs to change the hardware exception vectors. In nommu mode, the hardware exception vectors are normally