diff options
author | André Przywara <andre.przywara@arm.com> | 2020-10-28 14:34:07 +0000 |
---|---|---|
committer | TrustedFirmware Code Review <review@review.trustedfirmware.org> | 2020-10-28 14:34:07 +0000 |
commit | fc860630f6edc31e48667a36e593b0a5ff80597f (patch) | |
tree | ca7eca99186a86626ba121a9cd5d1a51956ed5d2 | |
parent | 6e97b22456bffe87fba6e9253c340025dbe9c1fb (diff) | |
parent | 2be491b1dc8deae73befd10d137d485c1a41d7f1 (diff) | |
download | trusted-firmware-a-fc860630f6edc31e48667a36e593b0a5ff80597f.tar.gz |
Merge "aarch64/arm: Add compiler barrier to barrier instructions" into integration
-rw-r--r-- | include/arch/aarch32/arch_helpers.h | 2 | ||||
-rw-r--r-- | include/arch/aarch64/arch_helpers.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/arch/aarch32/arch_helpers.h b/include/arch/aarch32/arch_helpers.h index 94cf7ea9dc..82efb188a4 100644 --- a/include/arch/aarch32/arch_helpers.h +++ b/include/arch/aarch32/arch_helpers.h @@ -166,7 +166,7 @@ static inline void _op(void) \ #define DEFINE_SYSOP_TYPE_FUNC(_op, _type) \ static inline void _op ## _type(void) \ { \ - __asm__ (#_op " " #_type); \ + __asm__ (#_op " " #_type : : : "memory"); \ } /* Define function for system instruction with register parameter */ diff --git a/include/arch/aarch64/arch_helpers.h b/include/arch/aarch64/arch_helpers.h index 1f2f4a9233..5d1bc948c8 100644 --- a/include/arch/aarch64/arch_helpers.h +++ b/include/arch/aarch64/arch_helpers.h @@ -80,7 +80,7 @@ static inline void _op(uint64_t v) \ #define DEFINE_SYSOP_TYPE_FUNC(_op, _type) \ static inline void _op ## _type(void) \ { \ - __asm__ (#_op " " #_type); \ + __asm__ (#_op " " #_type : : : "memory"); \ } /* Define function for system instruction with register parameter */ |