diff options
author | Will Deacon <will.deacon@arm.com> | 2017-09-20 18:48:33 +0300 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2017-10-18 14:53:32 +0300 |
commit | a173c390d9c130d1dd254a9246fc7ffe4a2869f7 (patch) | |
tree | 7a6118ccafcf154bf5f668f4a617b2a33c34836f /arch/arm64/include/asm/barrier.h | |
parent | 085b30625e39df67d7320f22269796276c6b0c11 (diff) | |
download | linux-a173c390d9c130d1dd254a9246fc7ffe4a2869f7.tar.xz |
arm64: sysreg: Move SPE registers and PSB into common header files
SPE is part of the v8.2 architecture, so move its system register and
field definitions into sysreg.h and the new PSB barrier into barrier.h
Finally, move KVM over to using the generic definitions so that it
doesn't have to open-code its own versions.
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/barrier.h')
-rw-r--r-- | arch/arm64/include/asm/barrier.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/barrier.h b/arch/arm64/include/asm/barrier.h index 0fe7e43b7fbc..77651c49ef44 100644 --- a/arch/arm64/include/asm/barrier.h +++ b/arch/arm64/include/asm/barrier.h @@ -31,6 +31,8 @@ #define dmb(opt) asm volatile("dmb " #opt : : : "memory") #define dsb(opt) asm volatile("dsb " #opt : : : "memory") +#define psb_csync() asm volatile("hint #17" : : : "memory") + #define mb() dsb(sy) #define rmb() dsb(ld) #define wmb() dsb(st) |