]> git.baikalelectronics.ru Git - uboot.git/commit
booti: Set images.os.arch
authorScott Wood <oss@buserror.net>
Thu, 26 Jan 2017 22:55:44 +0000 (16:55 -0600)
committerTom Rini <trini@konsulko.com>
Sat, 28 Jan 2017 19:04:51 +0000 (14:04 -0500)
commit1a9937b945c2946c1477765ac10e286cfcd373c8
tree631fb7eae56dbd1db46dca9e5cfd504d3bca8920
parentf262e8788782887d5c430bc7c4ef5259aa298e19
booti: Set images.os.arch

Commit 9e10795b83989e4f2374 ("armv8: Support loading 32-bit OS in AArch32
execution state") broke SMP boot by assuming that an image is 32-bit if
the arch field in the spin table != IH_ARCH_DEFAULT (i.e.
IH_ARCH_ARM64), even if the arch field also does not match IH_ARCH_ARM,
even though nothing actually set the arch field in the spin table.

Commit dbd4acfe9ad1684c ("armv8: fsl-layerscape: SMP support for loading
32-bit OS") fixed this for bootm by setting the arch field of the spin
table based on images.os.arch, but booti remaineed broken because it did
not set images.os.arch.

Fixes: 9e10795b83989e4f2374 ("armv8: Support loading 32-bit OS in AArch32 execution state")
Fixes: dbd4acfe9ad1 ("armv8: fsl-layerscape: SMP support for loading 32-bit OS")
Cc: Alison Wang <alison.wang@nxp.com>
Cc: Chenhui Zhao <chenhui.zhao@nxp.com>
Cc: York Sun <york.sun@nxp.com>
Cc: Stuart Yoder <stuart.yoder@nxp.com>
Signed-off-by: Scott Wood <oss@buserror.net>
Reviewed-by: Tom Rini <trini@konsulko.com>
cmd/booti.c