|
@@ -543,6 +543,16 @@ static inline u64 read_zcr_features(void)
|
|
#define ARM64_SSBD_FORCE_ENABLE 2
|
|
#define ARM64_SSBD_FORCE_ENABLE 2
|
|
#define ARM64_SSBD_MITIGATED 3
|
|
#define ARM64_SSBD_MITIGATED 3
|
|
|
|
|
|
|
|
+static inline int arm64_get_ssbd_state(void)
|
|
|
|
+{
|
|
|
|
+#ifdef CONFIG_ARM64_SSBD
|
|
|
|
+ extern int ssbd_state;
|
|
|
|
+ return ssbd_state;
|
|
|
|
+#else
|
|
|
|
+ return ARM64_SSBD_UNKNOWN;
|
|
|
|
+#endif
|
|
|
|
+}
|
|
|
|
+
|
|
#endif /* __ASSEMBLY__ */
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
|
|
#endif
|
|
#endif
|