mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
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>
This commit is contained in:
parent
b787f68c36
commit
6b1814cde5
@ -117,9 +117,14 @@ ENTRY(__switch_to)
|
|||||||
ENDPROC(__switch_to)
|
ENDPROC(__switch_to)
|
||||||
|
|
||||||
.data
|
.data
|
||||||
.align 8
|
#if CONFIG_CPU_V7M_NUM_IRQ <= 112
|
||||||
|
.align 9
|
||||||
|
#else
|
||||||
|
.align 10
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Vector table (64 words => 256 bytes natural alignment)
|
* Vector table (Natural alignment need to be ensured)
|
||||||
*/
|
*/
|
||||||
ENTRY(vector_table)
|
ENTRY(vector_table)
|
||||||
.long 0 @ 0 - Reset stack pointer
|
.long 0 @ 0 - Reset stack pointer
|
||||||
@ -138,6 +143,6 @@ ENTRY(vector_table)
|
|||||||
.long __invalid_entry @ 13 - Reserved
|
.long __invalid_entry @ 13 - Reserved
|
||||||
.long __pendsv_entry @ 14 - PendSV
|
.long __pendsv_entry @ 14 - PendSV
|
||||||
.long __invalid_entry @ 15 - SysTick
|
.long __invalid_entry @ 15 - SysTick
|
||||||
.rept 64 - 16
|
.rept CONFIG_CPU_V7M_NUM_IRQ
|
||||||
.long __irq_entry @ 16..64 - External Interrupts
|
.long __irq_entry @ External Interrupts
|
||||||
.endr
|
.endr
|
||||||
|
@ -604,6 +604,21 @@ config CPU_USE_DOMAINS
|
|||||||
This option enables or disables the use of domain switching
|
This option enables or disables the use of domain switching
|
||||||
via the set_fs() function.
|
via the set_fs() function.
|
||||||
|
|
||||||
|
config CPU_V7M_NUM_IRQ
|
||||||
|
int "Number of external interrupts connected to the NVIC"
|
||||||
|
depends on CPU_V7M
|
||||||
|
default 90 if ARCH_STM32
|
||||||
|
default 38 if ARCH_EFM32
|
||||||
|
default 240
|
||||||
|
help
|
||||||
|
This option indicates the number of interrupts connected to the NVIC.
|
||||||
|
The value can be larger than the real number of interrupts supported
|
||||||
|
by the system, but must not be lower.
|
||||||
|
The default value is 240, corresponding to the maximum number of
|
||||||
|
interrupts supported by the NVIC on Cortex-M family.
|
||||||
|
|
||||||
|
If unsure, keep default value.
|
||||||
|
|
||||||
#
|
#
|
||||||
# CPU supports 36-bit I/O
|
# CPU supports 36-bit I/O
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user