imx: bootaux: get stack from elf file
authorPeng Fan <peng.fan@nxp.com>
Fri, 29 Apr 2022 08:03:13 +0000 (16:03 +0800)
committerStefano Babic <sbabic@denx.de>
Fri, 20 May 2022 07:30:28 +0000 (09:30 +0200)
commit40153df63ab4b17382d41d03f3b65caaaea0490b
tree72612b121299f08e4422f677b908a40cc05057ce
parentfd60a87e752c7ea505ed5758017111ae4eb3c9c2
imx: bootaux: get stack from elf file

To i.MX8, M core stack is pre-coded in source code, so need to get it
before kicking M core. The stack pointer is stored in the first word of
the first PT_LOAD section __isr_vector. So use a num to index the
section loading.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/mach-imx/imx_bootaux.c