]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - pru-software-support-package/pru-software-support-package.git/commit
examples/am65x: Fixup linker command files for resource table alignment
authorSuman Anna <s-anna@ti.com>
Mon, 15 Mar 2021 22:54:19 +0000 (17:54 -0500)
committerSuman Anna <s-anna@ti.com>
Tue, 16 Mar 2021 15:22:26 +0000 (10:22 -0500)
commit0f2ebe7ed4aadfc42f69b64dfd4a00819d7be1d3
tree1da9336ecc6364ebdaaec2bbccb2d4200879a74e
parenta9bff6f43001cf66dc1ed3ef7e9dfb688b67f7bb
examples/am65x: Fixup linker command files for resource table alignment

The AM65x SoCs use an ARMv8 Cortex-A53 core for running Linux. The Linux
kernel is 64-bit and uses 8-byte (64-bit) pointers, but the various
PRU/RTU/Tx_PRU cores in ICSSG are 32-bit cores. The resource table section
therefore needs to be aligned on 8-byte addresses for proper pointer
dereferencing of different resource types on the Linux side.

The addresses are aligned on existing examples only by chance. Update all
the relevant linker cmd files to enforce the alignment that will be
effective even with any automatic shifting that might happen with some
code changes otherwise.

Signed-off-by: Suman Anna <s-anna@ti.com>
14 files changed:
examples/am65x/PRU_Halt/AM65x_PRU0.cmd
examples/am65x/PRU_Halt/AM65x_PRU1.cmd
examples/am65x/PRU_MAC_Multiply_Accum/AM65x_PRU0.cmd
examples/am65x/PRU_MAC_Multiply_Accum/AM65x_PRU1.cmd
examples/am65x/PRU_RPMsg_Echo_Interrupt0/AM65x_PRU0.cmd
examples/am65x/PRU_RPMsg_Echo_Interrupt1/AM65x_PRU1.cmd
examples/am65x/RTU_Halt/AM65x_RTU0.cmd
examples/am65x/RTU_Halt/AM65x_RTU1.cmd
examples/am65x/RTU_MAC_Multiply_Accum/AM65x_RTU0.cmd
examples/am65x/RTU_MAC_Multiply_Accum/AM65x_RTU1.cmd
examples/am65x/RTU_RPMsg_Echo_Interrupt0/AM65x_RTU0.cmd
examples/am65x/RTU_RPMsg_Echo_Interrupt1/AM65x_RTU1.cmd
examples/am65x/TX_PRU_Halt/AM65x_TX_PRU0.cmd
examples/am65x/TX_PRU_Halt/AM65x_TX_PRU1.cmd