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 */2 2 #ifndef _ASM_X86_HWCAP2_H 3 3 #define _ASM_X86_HWCAP2_H 4 4 5 +#include <linux/const.h>6 +5 7 /* 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)7 12 8 13 #endif