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>
This commit is contained in:
Amneesh Singh 2025-04-10 15:15:45 +05:30 committed by Benjamin Cabé
commit c4dcb17637

View file

@ -4,7 +4,7 @@
if SOC_SERIES_AM6X
config KERNEL_ENTRY
default "_vector_table"
default "_vector_table" if SOC_SERIES_AM6X_R5
# Workaround for not being able to have commas in macro arguments
DT_CHOSEN_Z_FLASH := zephyr,flash