From a984eb367c032dbe2577f01238c3d1268526be70 Mon Sep 17 00:00:00 2001 From: Kacper Date: Thu, 25 Dec 2025 19:24:38 +0100 Subject: Clang-tidy fixes --- include/arch/x86_64/asm/processor-flags.h | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'include/arch/x86_64/asm/processor-flags.h') diff --git a/include/arch/x86_64/asm/processor-flags.h b/include/arch/x86_64/asm/processor-flags.h index 02177c91..298ebe45 100644 --- a/include/arch/x86_64/asm/processor-flags.h +++ b/include/arch/x86_64/asm/processor-flags.h @@ -82,11 +82,9 @@ #define X86_CR3_PCID_BITS 12 #define X86_CR3_PCID_MASK (_AC((1UL << X86_CR3_PCID_BITS) - 1, UL)) -#define X86_CR3_LAM_U57_BIT \ - 61 /* Activate LAM for userspace, 62:57 bits masked */ -#define X86_CR3_LAM_U57 _BITULL(X86_CR3_LAM_U57_BIT) -#define X86_CR3_LAM_U48_BIT \ - 62 /* Activate LAM for userspace, 62:48 bits masked */ +#define X86_CR3_LAM_U57_BIT 61 /* Activate LAM for userspace, 62:57 bits masked */ +#define X86_CR3_LAM_U57 _BITULL(X86_CR3_LAM_U57_BIT) +#define X86_CR3_LAM_U48_BIT 62 /* Activate LAM for userspace, 62:48 bits masked */ #define X86_CR3_LAM_U48 _BITULL(X86_CR3_LAM_U48_BIT) #define X86_CR3_PCID_NOFLUSH_BIT 63 /* Preserve old PCID */ #define X86_CR3_PCID_NOFLUSH _BITULL(X86_CR3_PCID_NOFLUSH_BIT) @@ -176,8 +174,6 @@ #define CX86_ARR_BASE 0xc4 #define CX86_RCR_BASE 0xdc -#define CR0_STATE \ - (X86_CR0_PE | X86_CR0_MP | X86_CR0_ET | X86_CR0_NE | X86_CR0_WP | \ - X86_CR0_AM | X86_CR0_PG) +#define CR0_STATE (X86_CR0_PE | X86_CR0_MP | X86_CR0_ET | X86_CR0_NE | X86_CR0_WP | X86_CR0_AM | X86_CR0_PG) #endif /* _ASM_X86_PROCESSOR_FLAGS_H */ -- cgit v1.2.3