diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2007-05-08 17:53:44 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2007-05-08 17:55:57 -0400 |
commit | 56163fcf194fb688fcf3cefa9b90c5ad41f74059 (patch) | |
tree | 35b26ce5d0c40fa153ea87610987983f12642a67 /include/asm-arm/system.h | |
parent | aaf83acba9fb1f93d2e656c7e4dda4e38c1cb490 (diff) |
[ARM] armv7: add dedicated ARMv7 barrier instructions
Starting with ARMv7, there are dedicated instruction for the ISB, DSB
and DMB barriers and there is no need to execute them as CP15
operations.
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/asm-arm/system.h')
-rw-r--r-- | include/asm-arm/system.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/asm-arm/system.h b/include/asm-arm/system.h index c57555c3709..41dd49151da 100644 --- a/include/asm-arm/system.h +++ b/include/asm-arm/system.h | |||
@@ -158,7 +158,11 @@ extern unsigned int user_debug; | |||
158 | #define vectors_high() (0) | 158 | #define vectors_high() (0) |
159 | #endif | 159 | #endif |
160 | 160 | ||
161 | #if defined(CONFIG_CPU_XSC3) || __LINUX_ARM_ARCH__ >= 6 | 161 | #if __LINUX_ARM_ARCH__ >= 7 |
162 | #define isb() __asm__ __volatile__ ("isb" : : : "memory") | ||
163 | #define dsb() __asm__ __volatile__ ("dsb" : : : "memory") | ||
164 | #define dmb() __asm__ __volatile__ ("dmb" : : : "memory") | ||
165 | #elif defined(CONFIG_CPU_XSC3) || __LINUX_ARM_ARCH__ == 6 | ||
162 | #define isb() __asm__ __volatile__ ("mcr p15, 0, %0, c7, c5, 4" \ | 166 | #define isb() __asm__ __volatile__ ("mcr p15, 0, %0, c7, c5, 4" \ |
163 | : : "r" (0) : "memory") | 167 | : : "r" (0) : "memory") |
164 | #define dsb() __asm__ __volatile__ ("mcr p15, 0, %0, c7, c10, 4" \ | 168 | #define dsb() __asm__ __volatile__ ("mcr p15, 0, %0, c7, c10, 4" \ |