soc: nxp: imx: imx8m: Align resource table to 64bit for i.MX 8M

Running samples/subsys/ipc/openamp_rsc_table with some adjustments
sometimes results in linux kernel panics.

After experimenting it appears to be hit or miss depending on the
resource table alignment.
Explicitly aligning to 64bit (the native width), no more kernel panics
were seen.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
Pieter De Gendt 2024-02-19 13:30:00 +01:00 committed by Henrik Brix Andersen
commit 42fa87d5a8
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@
SECTIONS SECTIONS
{ {
#ifdef CONFIG_OPENAMP_RSC_TABLE #ifdef CONFIG_OPENAMP_RSC_TABLE
SECTION_PROLOGUE(.resource_table,, SUBALIGN(4)) SECTION_PROLOGUE(.resource_table,, SUBALIGN(8))
{ {
KEEP(*(.resource_table*)) KEEP(*(.resource_table*))
} GROUP_LINK_IN(ROMABLE_REGION) } GROUP_LINK_IN(ROMABLE_REGION)

View file

@ -21,7 +21,7 @@ MEMORY
SECTIONS SECTIONS
{ {
#ifdef CONFIG_OPENAMP_RSC_TABLE #ifdef CONFIG_OPENAMP_RSC_TABLE
SECTION_PROLOGUE(.resource_table,, SUBALIGN(4)) SECTION_PROLOGUE(.resource_table,, SUBALIGN(8))
{ {
KEEP(*(.resource_table*)) KEEP(*(.resource_table*))
} GROUP_LINK_IN(ROMABLE_REGION) } GROUP_LINK_IN(ROMABLE_REGION)