ARM: 8340/1: ARMv7-M: Enlarge vector table up to 256 entries
authorMaxime Coquelin stm32 <mcoquelin.stm32@gmail.com>
Fri, 10 Apr 2015 08:46:46 +0000 (09:46 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 8 May 2015 09:42:21 +0000 (10:42 +0100)
commit6b1814cde5c79c6aa4d02c9aedc14a709c2c0737
tree1510cad5eb6bacd362b90a9c3124dfb9f4973a36
parentb787f68c36d49bb1d9236f403813641efa74a031
ARM: 8340/1: ARMv7-M: Enlarge vector table up to 256 entries

From Cortex-M reference manuals, the nvic supports up to 240 interrupts.
So the number of entries in vectors table is up to 256.

This patch adds a new config flag to specify the number of external interrupts.
Some ifdeferies are added in order to respect the natural alignment without
wasting too much space on smaller systems.

Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Stefan Agner <stefan@agner.ch>
Tested-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Maxime Coquelin <mcoquelin.stm32@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/entry-v7m.S
arch/arm/mm/Kconfig