/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_X86_FPU_XCR_H #define _ASM_X86_FPU_XCR_H #define XCR_XFEATURE_ENABLED_MASK … #define XCR_XFEATURE_IN_USE_MASK … static __always_inline u64 xgetbv(u32 index) { … } static inline void xsetbv(u32 index, u64 value) { … } /* * Return a mask of xfeatures which are currently being tracked * by the processor as being in the initial configuration. * * Callers should check X86_FEATURE_XGETBV1. */ static __always_inline u64 xfeatures_in_use(void) { … } #endif /* _ASM_X86_FPU_XCR_H */