Re: [PATCH] arm: smh: Fix uninitialized parameters with newer GCCs

2022-08-31 Thread Tom Rini
On Tue, Aug 30, 2022 at 04:32:27PM -0400, Sean Anderson wrote: > 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. > > Si

[PATCH] arm: smh: Fix uninitialized parameters with newer GCCs

2022-08-30 Thread Sean Anderson
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 --- arch/arm/lib/semihosting.c | 6 +++--- 1 f