hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
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