]> git.ipfire.org Git - thirdparty/linux.git/blobdiff - arch/x86/include/asm/coco.h
Merge branch 'x86/sev' into x86/boot, to resolve conflicts and to pick up dependent...
[thirdparty/linux.git] / arch / x86 / include / asm / coco.h
index 76c310b19b11d898db11cf498d7c82449bbf7dc2..8a1cd359248f993fad129b6e379ca476f87d743d 100644 (file)
@@ -2,6 +2,7 @@
 #ifndef _ASM_X86_COCO_H
 #define _ASM_X86_COCO_H
 
+#include <asm/asm.h>
 #include <asm/types.h>
 
 enum cc_vendor {
@@ -10,9 +11,14 @@ enum cc_vendor {
        CC_VENDOR_INTEL,
 };
 
+extern u64 cc_mask;
 #ifdef CONFIG_ARCH_HAS_CC_PLATFORM
 extern enum cc_vendor cc_vendor;
-void cc_set_mask(u64 mask);
+static inline void cc_set_mask(u64 mask)
+{
+       RIP_REL_REF(cc_mask) = mask;
+}
+
 u64 cc_mkenc(u64 val);
 u64 cc_mkdec(u64 val);
 #else