Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752089AbbBLUey (ORCPT ); Thu, 12 Feb 2015 15:34:54 -0500 Received: from mail-ob0-f172.google.com ([209.85.214.172]:47683 "EHLO mail-ob0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751045AbbBLUes (ORCPT ); Thu, 12 Feb 2015 15:34:48 -0500 MIME-Version: 1.0 In-Reply-To: <1423763164-5606-3-git-send-email-mcoquelin.stm32@gmail.com> References: <1423763164-5606-1-git-send-email-mcoquelin.stm32@gmail.com> <1423763164-5606-3-git-send-email-mcoquelin.stm32@gmail.com> Date: Thu, 12 Feb 2015 21:34:47 +0100 X-Google-Sender-Auth: r-OAk1Ts3Qk922m_CaNr3Vic5W8 Message-ID: Subject: Re: [PATCH 02/14] ARM: ARMv7M: Enlarge vector table to 256 entries From: Geert Uytterhoeven To: Maxime Coquelin Cc: Jonathan Corbet , 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 , "linux-api@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2183 Lines: 60 On Thu, Feb 12, 2015 at 6:45 PM, Maxime Coquelin wrote: > 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. Shouldn't this depend on ARCH_STM32, or some other M4 or M7 specific Kconfig option, to avoid wasting the space on other CPUs? > > 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 > -- > 1.9.1 Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/