Index: sys/compat/linuxkpi/common/include/asm/pgtable.h =================================================================== --- sys/compat/linuxkpi/common/include/asm/pgtable.h +++ sys/compat/linuxkpi/common/include/asm/pgtable.h @@ -42,4 +42,17 @@ #define pgprot_decrypted(prot) (prot) +#define _PAGE_BIT_PRESENT 0 +#define _PAGE_BIT_RW 1 +#define _PAGE_BIT_USER 2 +#define _PAGE_BIT_PWT 3 +#define _PAGE_BIT_PCD 4 +#define _PAGE_BIT_PAT 7 + +#define _PAGE_PRESENT (((pteval_t) 1) << _PAGE_BIT_PRESENT) +#define _PAGE_RW (((pteval_t) 1) << _PAGE_BIT_RW) +#define _PAGE_PWT (((pteval_t) 1) << _PAGE_BIT_PWT) +#define _PAGE_PCD (((pteval_t) 1) << _PAGE_BIT_PCD) +#define _PAGE_PAT (((pteval_t) 1) << _PAGE_BIT_PAT) + #endif /* _LINUXKPI_ASM_PGTABLE_H_ */