]> git.dujemihanovic.xyz Git - u-boot.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)
commitf4b540e25c5c63fd55a80c78a22b2f69ecb848f8
tree682c915d732c07d017a00278ae76fdea6f00b003
parent1a4af2d9507b54ccf91d5616d5544915f695e64d
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