]> git.baikalelectronics.ru Git - uboot.git/commit
imx: bootaux: fix stack and pc assignment on 64-bit platforms
authorGary Bisson <gary.bisson@boundarydevices.com>
Wed, 14 Nov 2018 16:55:29 +0000 (17:55 +0100)
committerStefano Babic <sbabic@denx.de>
Tue, 1 Jan 2019 13:12:18 +0000 (14:12 +0100)
commit312d42b0a68b9b1dba0763abca317d17b06dc18d
tree6761bc456e62f4db4965b77699a9a86e1b39c98d
parenta8808238816f501b44d9b3f354b0df1daa0a1712
imx: bootaux: fix stack and pc assignment on 64-bit platforms

Using ulong is wrong as its size depends on the Host CPU architecture
(32-bit vs. 64-bit) although the Cortex-M4 is always 32-bit.

Without this patch, the stack and PC are obviously wrong and it
generates an abort when used on 64-bit processors such as the i.MX8MQ.

Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
arch/arm/mach-imx/imx_bootaux.c