From 5a0da3fb3827315b37fb5d9a88be505e0e5fd2b1 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Thu, 24 Oct 2024 02:13:45 +0300 Subject: [PATCH] x86 specialreg: reorder %cr3 bits masks definitions by value (cherry picked from commit cc4b25f10211fdd5a347a5a9fc26b2c86476db7f) --- sys/x86/include/specialreg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/x86/include/specialreg.h b/sys/x86/include/specialreg.h index d67112a3758..a8ff7aa2b30 100644 --- a/sys/x86/include/specialreg.h +++ b/sys/x86/include/specialreg.h @@ -53,8 +53,8 @@ #define CR0_NW 0x20000000 /* Not Write-through */ #define CR0_CD 0x40000000 /* Cache Disable */ -#define CR3_PCID_SAVE 0x8000000000000000 -#define CR3_PCID_MASK 0xfff +#define CR3_PCID_MASK 0x0000000000000fff +#define CR3_PCID_SAVE 0x8000000000000000 /* * Bits in PPro special registers