]> git.baikalelectronics.ru Git - uboot.git/commit
arm: use correct argument size of special registers
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 27 May 2020 18:04:24 +0000 (20:04 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 7 Jul 2020 22:23:48 +0000 (18:23 -0400)
commite6ce0ce77b51d5f7d5345a23eaa5963ca2876ef3
tree4f37407e7661f1aaf7c52275efdb8be3f2c1fab2
parentb686bd1bbd2fb356eabbe5919f156eddc3e1bcc1
arm: use correct argument size of special registers

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 <xypron.glpk@gmx.de>
arch/arm/include/asm/system.h