]> git.baikalelectronics.ru Git - uboot.git/commit
arm: smh: Fix uninitialized parameters with newer GCCs
authorSean Anderson <sean.anderson@seco.com>
Tue, 30 Aug 2022 20:32:27 +0000 (16:32 -0400)
committerTom Rini <trini@konsulko.com>
Wed, 31 Aug 2022 16:21:47 +0000 (12:21 -0400)
commit5ab1739c3ff873edd8e2204f80e7e9757875cd21
tree682c915d732c07d017a00278ae76fdea6f00b003
parentf0dde845fa846137e1e63348890ddbfacd8b8a92
arm: smh: Fix uninitialized parameters with newer GCCs

Newer versions of GCC won't initialize parts of structures which don't
appear to be used. This results in uninitialized semihosting parameters
passed via R1. Fix this by marking the inline assembly as clobbering
memory.

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
arch/arm/lib/semihosting.c