hc
2024-05-10 ee930fffee469d076998274a2ca55e13dc1efb67
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