| .. | .. |
|---|
| 9 | 9 | #define _ASM_POWERPC_SECURITY_FEATURES_H |
|---|
| 10 | 10 | |
|---|
| 11 | 11 | |
|---|
| 12 | | -extern unsigned long powerpc_security_features; |
|---|
| 12 | +extern u64 powerpc_security_features; |
|---|
| 13 | 13 | extern bool rfi_flush; |
|---|
| 14 | 14 | |
|---|
| 15 | 15 | /* These are bit flags */ |
|---|
| .. | .. |
|---|
| 24 | 24 | void do_stf_barrier_fixups(enum stf_barrier_type types); |
|---|
| 25 | 25 | void setup_count_cache_flush(void); |
|---|
| 26 | 26 | |
|---|
| 27 | | -static inline void security_ftr_set(unsigned long feature) |
|---|
| 27 | +static inline void security_ftr_set(u64 feature) |
|---|
| 28 | 28 | { |
|---|
| 29 | 29 | powerpc_security_features |= feature; |
|---|
| 30 | 30 | } |
|---|
| 31 | 31 | |
|---|
| 32 | | -static inline void security_ftr_clear(unsigned long feature) |
|---|
| 32 | +static inline void security_ftr_clear(u64 feature) |
|---|
| 33 | 33 | { |
|---|
| 34 | 34 | powerpc_security_features &= ~feature; |
|---|
| 35 | 35 | } |
|---|
| 36 | 36 | |
|---|
| 37 | | -static inline bool security_ftr_enabled(unsigned long feature) |
|---|
| 37 | +static inline bool security_ftr_enabled(u64 feature) |
|---|
| 38 | 38 | { |
|---|
| 39 | 39 | return !!(powerpc_security_features & feature); |
|---|
| 40 | 40 | } |
|---|
| .. | .. |
|---|
| 68 | 68 | // bcctr 2,0,0 triggers a hardware assisted count cache flush |
|---|
| 69 | 69 | #define SEC_FTR_BCCTR_FLUSH_ASSIST 0x0000000000000800ull |
|---|
| 70 | 70 | |
|---|
| 71 | +// bcctr 2,0,0 triggers a hardware assisted link stack flush |
|---|
| 72 | +#define SEC_FTR_BCCTR_LINK_FLUSH_ASSIST 0x0000000000002000ull |
|---|
| 71 | 73 | |
|---|
| 72 | 74 | // Features indicating need for Spectre/Meltdown mitigations |
|---|
| 73 | 75 | |
|---|