hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/arch/x86/include/uapi/asm/hwcap2.h
....@@ -1,8 +1,13 @@
1
-/* SPDX-License-Identifier: GPL-2.0 */
1
+/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
22 #ifndef _ASM_X86_HWCAP2_H
33 #define _ASM_X86_HWCAP2_H
44
5
+#include <linux/const.h>
6
+
57 /* MONITOR/MWAIT enabled in Ring 3 */
6
-#define HWCAP2_RING3MWAIT (1 << 0)
8
+#define HWCAP2_RING3MWAIT _BITUL(0)
9
+
10
+/* Kernel allows FSGSBASE instructions available in Ring 3 */
11
+#define HWCAP2_FSGSBASE _BITUL(1)
712
813 #endif