From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Tue, 7 Jul 2020 23:03:56 -0400 Subject: [PATCH 4/4] arm: use correct argument size of special registers In-Reply-To: <20200527180424.39395-5-xypron.glpk@gmx.de> References: <20200527180424.39395-1-xypron.glpk@gmx.de> <20200527180424.39395-5-xypron.glpk@gmx.de> Message-ID: <20200708030356.GX1306@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, May 27, 2020 at 08:04:24PM +0200, Heinrich Schuchardt wrote: > Compiling with clang on ARMv8 shows errors like: > > ./arch/arm/include/asm/system.h:162:32: note: use constraint modifier "w" > asm volatile("msr sctlr_el1, %0" : : "r" (val) : "cc"); > ^~ > %w0 > > These errors are due to using an incorrect size for the variables used > for writing to and reading from special registers which have 64 bits on > ARMv8. > > Mask off reserved bits when reading the exception level. > > Signed-off-by: Heinrich Schuchardt Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: