File tree Expand file tree Collapse file tree 5 files changed +25
-6
lines changed Expand file tree Collapse file tree 5 files changed +25
-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,15 @@ 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
+ depends on !ROMSTART_RELOCATION_ROM
581
+ help
582
+ When XiP is enabled, this option will result in the vector table being
583
+ relocated from Flash to SRAM.
584
+
576
585
config IRQ_OFFLOAD_NESTED
577
586
bool "irq_offload() supports nested IRQs"
578
587
depends on IRQ_OFFLOAD
@@ -671,6 +680,9 @@ config ARCH_HAS_NOCACHE_MEMORY_SUPPORT
671
680
config ARCH_HAS_RAMFUNC_SUPPORT
672
681
bool
673
682
683
+ config ARCH_HAS_VECTOR_TABLE_RELOCATION
684
+ bool
685
+
674
686
config ARCH_HAS_NESTED_EXCEPTION_DETECTION
675
687
bool
676
688
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 @@ -329,3 +329,9 @@ Modules
329
329
330
330
Architectures
331
331
*************
332
+
333
+ * Moved :kconfig:option: `CONFIG_SRAM_VECTOR_TABLE ` from ``zephyr/Kconfig.zephyr `` to
334
+ ``zephyr/arch/Kconfig `` and added dependency to :kconfig:option: `CONFIG_XIP `,
335
+ :kconfig:option: `CONFIG_ARCH_HAS_VECTOR_TABLE_RELOCATION ` and
336
+ :kconfig:option: `CONFIG_ROMSTART_RELOCATION_ROM ` to support relocation
337
+ of vector table in RAM.
Original file line number Diff line number Diff line change @@ -106,6 +106,12 @@ Deprecated APIs and options
106
106
New APIs and options
107
107
====================
108
108
109
+ * Architectures
110
+
111
+ * :kconfig:option: `ARCH_HAS_VECTOR_TABLE_RELOCATION `
112
+ * :kconfig:option: `CONFIG_SRAM_VECTOR_TABLE ` moved from ``zephyr/Kconfig.zephyr `` to
113
+ ``zephyr/arch/Kconfig `` and added dependencies to it.
114
+
109
115
* Kernel
110
116
111
117
* :c:macro: `K_TIMEOUT_ABS_SEC `
You can’t perform that action at this time.
0 commit comments