From patchwork Thu Feb 12 17:45:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Coquelin X-Patchwork-Id: 5821151 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 876619F336 for ; Thu, 12 Feb 2015 17:49:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B5CDB20254 for ; Thu, 12 Feb 2015 17:49:55 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D83D220256 for ; Thu, 12 Feb 2015 17:49:53 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YLxrL-0004pE-OZ; Thu, 12 Feb 2015 17:47:27 +0000 Received: from mail-wg0-x241.google.com ([2a00:1450:400c:c00::241]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YLxqZ-0004Sd-2Y for linux-arm-kernel@lists.infradead.org; Thu, 12 Feb 2015 17:46:39 +0000 Received: by mail-wg0-f65.google.com with SMTP id k14so2444452wgh.0 for ; Thu, 12 Feb 2015 09:46:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=wYt06xPNxo8c3oygPWErgyueSCV1HugADdUc+zLC93E=; b=tJy2EhgeXjDV/nMaID5tRoP7IzogdruHkwS9MyT3vwKtMZKJY0smQET2ReOP6g3Rwi CKpXM0sDN0+ZfGtf5dn3i+zaXWzlakXDi1Ix63AySrpOTQtsBdW8AOdgCrzHS89pygPU HINPjVO8QWWLUr1EKoOBaJxiuDt4so3R50hGaKzAHS8EqGjnfbUOl1h9UtKhlinuj7xZ hI5ymz91cUf83l6ZD+ZDy0UCf5elwl/OJpv0k4YqXqU4CdziPA1Bn4fWDkFfDD72QKCj 40MlH0SvFREYTMaH9wzm3J2n8BDPCYMM/hCY3I1OzLEgDqQ37s7ORYsmXJc+ChpJuNvq NErA== X-Received: by 10.180.74.199 with SMTP id w7mr9351249wiv.1.1423763176894; Thu, 12 Feb 2015 09:46:16 -0800 (PST) Received: from lmecul0520.st.com. (157.162.113.78.rev.sfr.net. [78.113.162.157]) by mx.google.com with ESMTPSA id ka1sm6614924wjc.2.2015.02.12.09.46.13 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 12 Feb 2015 09:46:16 -0800 (PST) From: Maxime Coquelin To: Jonathan Corbet , Maxime Coquelin , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Philipp Zabel , Russell King , Daniel Lezcano , Thomas Gleixner , Linus Walleij , Greg Kroah-Hartman , Jiri Slaby , Arnd Bergmann , Andrew Morton , "David S. Miller" , Mauro Carvalho Chehab , Joe Perches , Antti Palosaari , Tejun Heo , Will Deacon , Nikolay Borisov , Rusty Russell , Kees Cook , Michal Marek , linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, linux-serial@vger.kernel.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org Subject: [PATCH 02/14] ARM: ARMv7M: Enlarge vector table to 256 entries Date: Thu, 12 Feb 2015 18:45:52 +0100 Message-Id: <1423763164-5606-3-git-send-email-mcoquelin.stm32@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1423763164-5606-1-git-send-email-mcoquelin.stm32@gmail.com> References: <1423763164-5606-1-git-send-email-mcoquelin.stm32@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150212_094639_374135_82A763E5 X-CRM114-Status: GOOD ( 12.17 ) X-Spam-Score: -0.6 (/) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From Cortex-M4 and M7 reference manuals, the nvic supports up to 240 interrupts. So the number of entries in vectors table is 256. This patch adds the missing entries, and change the alignement, so that vector_table remains naturally aligned. Signed-off-by: Maxime Coquelin --- arch/arm/kernel/entry-v7m.S | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/kernel/entry-v7m.S b/arch/arm/kernel/entry-v7m.S index 8944f49..29a461b 100644 --- a/arch/arm/kernel/entry-v7m.S +++ b/arch/arm/kernel/entry-v7m.S @@ -117,9 +117,9 @@ ENTRY(__switch_to) ENDPROC(__switch_to) .data - .align 8 + .align 10 /* - * Vector table (64 words => 256 bytes natural alignment) + * Vector table (256 words => 1024 bytes alignment) */ ENTRY(vector_table) .long 0 @ 0 - Reset stack pointer @@ -138,6 +138,6 @@ ENTRY(vector_table) .long __invalid_entry @ 13 - Reserved .long __pendsv_entry @ 14 - PendSV .long __invalid_entry @ 15 - SysTick - .rept 64 - 16 - .long __irq_entry @ 16..64 - External Interrupts + .rept 256 - 16 + .long __irq_entry @ 16..256 - External Interrupts .endr