x86, cpa: rename PTE attribute macros for kernel direct mapping in early boot
[deliverable/linux.git] / include / asm-x86 / pgtable.h
index eccd52406ab1361bea8fc26c31d59480a0f5faec..0ff73e7737adf76358148e9b1609d292d93b3142 100644 (file)
 #define __S110 PAGE_SHARED_EXEC
 #define __S111 PAGE_SHARED_EXEC
 
+/*
+ * early identity mapping  pte attrib macros.
+ */
+#ifdef CONFIG_X86_64
+#define __PAGE_KERNEL_IDENT_LARGE_EXEC __PAGE_KERNEL_LARGE_EXEC
+#else
+#define PTE_IDENT_ATTR  0x007          /* PRESENT+RW+USER */
+#define PDE_IDENT_ATTR  0x067          /* PRESENT+RW+USER+DIRTY+ACCESSED */
+#define PGD_IDENT_ATTR  0x001          /* PRESENT (no other attributes) */
+#endif
+
 #ifndef __ASSEMBLY__
 
 /*
This page took 0.029667 seconds and 5 git commands to generate.