File tree 4 files changed +17
-6
lines changed
4 files changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -215,12 +215,6 @@ config LINKER_SORT_BY_ALIGNMENT
215
215
in decreasing size of symbols. This helps to minimize
216
216
padding between symbols.
217
217
218
- config SRAM_VECTOR_TABLE
219
- bool "Place the vector table in SRAM instead of flash"
220
- help
221
- The option specifies that the vector table should be placed at the
222
- start of SRAM instead of the start of flash.
223
-
224
218
config HAS_SRAM_OFFSET
225
219
bool
226
220
help
Original file line number Diff line number Diff line change @@ -573,6 +573,14 @@ config IRQ_OFFLOAD
573
573
run in interrupt context. Only useful for test cases that need
574
574
to validate the correctness of kernel objects in IRQ context.
575
575
576
+ config SRAM_VECTOR_TABLE
577
+ bool "Place the vector table in SRAM instead of flash"
578
+ depends on ARCH_HAS_VECTOR_TABLE_RELOCATION
579
+ depends on XIP
580
+ help
581
+ When XiP is enabled, this option will result in the vector table being
582
+ relocated from Flash to SRAM.
583
+
576
584
config IRQ_OFFLOAD_NESTED
577
585
bool "irq_offload() supports nested IRQs"
578
586
depends on IRQ_OFFLOAD
@@ -671,6 +679,9 @@ config ARCH_HAS_NOCACHE_MEMORY_SUPPORT
671
679
config ARCH_HAS_RAMFUNC_SUPPORT
672
680
bool
673
681
682
+ config ARCH_HAS_VECTOR_TABLE_RELOCATION
683
+ bool
684
+
674
685
config ARCH_HAS_NESTED_EXCEPTION_DETECTION
675
686
bool
676
687
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ config CPU_CORTEX_M
16
16
select ARCH_HAS_USERSPACE if ARM_MPU
17
17
select ARCH_HAS_NOCACHE_MEMORY_SUPPORT if ARM_MPU && CPU_HAS_ARM_MPU && CPU_HAS_DCACHE
18
18
select ARCH_HAS_RAMFUNC_SUPPORT
19
+ select ARCH_HAS_VECTOR_TABLE_RELOCATION if CPU_CORTEX_M_HAS_VTOR
19
20
select ARCH_HAS_NESTED_EXCEPTION_DETECTION
20
21
select SWAP_NONATOMIC
21
22
select ARCH_HAS_EXTRA_EXCEPTION_INFO
Original file line number Diff line number Diff line change @@ -95,6 +95,11 @@ Deprecated APIs and options
95
95
New APIs and options
96
96
====================
97
97
98
+ * Architectures
99
+ * :kconfig:option: `ARCH_HAS_VECTOR_TABLE_RELOCATION `
100
+ * Move :kconfig:option: `CONFIG_SRAM_VECTOR_TABLE ` from ``zephyr/Kconfig.zephyr `` to
101
+ ``zephyr/arch/Kconfig `` and added dependencies to it.
102
+
98
103
* Kernel
99
104
100
105
* :c:macro: `K_TIMEOUT_ABS_SEC `
You can’t perform that action at this time.
0 commit comments