Skip to content

Commit c4dcb17

Browse files
natto1784kartben
authored andcommitted
soc: ti: k3: am6x: do not override KERNEL_ENTRY
The SOC defconfig overrides CONFIG_KERNEL_ENTRY from the default of __start to _vector_table. This is undesirable for cores such as M4 where the _vector_table symbol has just raw addresses and no instructions. The change was done to make sure Zephyr images can be loaded via remoteproc in which case the entrypoint needs to be 64 byte aligned. To fix this, use _vector_table as the ELF entrypoint only for R5 cores. Signed-off-by: Amneesh Singh <a-singh7@ti.com>
1 parent e1d7641 commit c4dcb17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

soc/ti/k3/am6x/Kconfig.defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
if SOC_SERIES_AM6X
55

66
config KERNEL_ENTRY
7-
default "_vector_table"
7+
default "_vector_table" if SOC_SERIES_AM6X_R5
88

99
# Workaround for not being able to have commas in macro arguments
1010
DT_CHOSEN_Z_FLASH := zephyr,flash

0 commit comments

Comments
 (0)