summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/security_features.h
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2020-06-09 17:06:09 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2020-07-16 13:12:32 +1000
commit4d24e21cc694e7253a532fe5a9bde12b284f1317 (patch)
tree8bb401bd0919c77c6319c25e7233401b44c68765 /arch/powerpc/include/asm/security_features.h
parent70d7cdaf0548ec95fa7204dcdd39cd8e63cee24d (diff)
downloadlinux-4d24e21cc694e7253a532fe5a9bde12b284f1317.tar.bz2
powerpc/security: Allow for processors that flush the link stack using the special bcctr
If both count cache and link stack are to be flushed, and can be flushed with the special bcctr, patch that in directly to the flush/branch nop site. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20200609070610.846703-7-npiggin@gmail.com
Diffstat (limited to 'arch/powerpc/include/asm/security_features.h')
-rw-r--r--arch/powerpc/include/asm/security_features.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/security_features.h b/arch/powerpc/include/asm/security_features.h
index 7c05e95a5c44..fbb8fa32150f 100644
--- a/arch/powerpc/include/asm/security_features.h
+++ b/arch/powerpc/include/asm/security_features.h
@@ -63,6 +63,8 @@ static inline bool security_ftr_enabled(u64 feature)
// bcctr 2,0,0 triggers a hardware assisted count cache flush
#define SEC_FTR_BCCTR_FLUSH_ASSIST 0x0000000000000800ull
+// bcctr 2,0,0 triggers a hardware assisted link stack flush
+#define SEC_FTR_BCCTR_LINK_FLUSH_ASSIST 0x0000000000002000ull
// Features indicating need for Spectre/Meltdown mitigations