diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-02-02 21:19:17 +0900 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-04-27 18:35:02 +0900 |
commit | 8f4dbaab648e587b28c658e12ab0b4e943f1d544 (patch) | |
tree | 3bb32db6bf10e8b9471873a937c9a444739a72f3 | |
parent | 57d1e5faf21c160c2dd3f152f5195a13ba8c7c70 (diff) | |
download | platform_external_arm-trusted-firmware-8f4dbaab648e587b28c658e12ab0b4e943f1d544.tar.gz platform_external_arm-trusted-firmware-8f4dbaab648e587b28c658e12ab0b4e943f1d544.tar.bz2 platform_external_arm-trusted-firmware-8f4dbaab648e587b28c658e12ab0b4e943f1d544.zip |
arch_helpers: use u_register_t for register read/write
u_register_t is preferred rather than uint64_t. This is more
consistent with the aarch32 implementation.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
-rw-r--r-- | include/lib/aarch64/arch_helpers.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/lib/aarch64/arch_helpers.h b/include/lib/aarch64/arch_helpers.h index 485ed4325..c346f7961 100644 --- a/include/lib/aarch64/arch_helpers.h +++ b/include/lib/aarch64/arch_helpers.h @@ -18,15 +18,15 @@ *********************************************************************/ #define _DEFINE_SYSREG_READ_FUNC(_name, _reg_name) \ -static inline uint64_t read_ ## _name(void) \ +static inline u_register_t read_ ## _name(void) \ { \ - uint64_t v; \ + u_register_t v; \ __asm__ volatile ("mrs %0, " #_reg_name : "=r" (v)); \ return v; \ } #define _DEFINE_SYSREG_WRITE_FUNC(_name, _reg_name) \ -static inline void write_ ## _name(uint64_t v) \ +static inline void write_ ## _name(u_register_t v) \ { \ __asm__ volatile ("msr " #_reg_name ", %0" : : "r" (v)); \ } |