ARM: ARC: put sw_isr_table in ROM by default
We can save a great deal of RAM this way, it only needs to be in RAM if dynamic interrupts are in use. At some point this config option broke, probably when static interrupts were introduced into the system. To induce build (instead of runtime) errors when irq_connect_dynamic() is used without putting the table in RAM, the dynamic interrupt functions are now conditionally compiled. Change-Id: I4860508746fd375d189390163876c59b6c544c9a Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
11f97de957
commit
2a1ae3f436
10 changed files with 93 additions and 68 deletions
|
@ -53,12 +53,6 @@
|
|||
#define SCS_SECTION scs
|
||||
#define SCP_SECTION scp
|
||||
|
||||
#ifdef CONFIG_SW_ISR_TABLE_DYNAMIC
|
||||
#define ISR_TABLE_SECTION DATA
|
||||
#else /* !CONFIG_SW_ISR_TABLE_DYNAMIC */
|
||||
#define ISR_TABLE_SECTION RODATA
|
||||
#endif /* CONFIG_SW_ISR_TABLE_DYNAMIC */
|
||||
|
||||
#define SECURITY_FRDM_K64F security_frdm_k64f
|
||||
#define IRQ_VECTOR_TABLE irq_vector_table
|
||||
|
||||
|
@ -68,12 +62,6 @@
|
|||
|
||||
#elif defined(CONFIG_ARC)
|
||||
|
||||
#ifdef CONFIG_SW_ISR_TABLE_DYNAMIC
|
||||
#define ISR_TABLE_SECTION DATA
|
||||
#else
|
||||
#define ISR_TABLE_SECTION RODATA
|
||||
#endif
|
||||
|
||||
#define IRQ_VECTOR_TABLE irq_vector_table
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue