|
@@ -14,9 +14,6 @@
|
|
#ifndef _PAGE_WRITETHRU
|
|
#ifndef _PAGE_WRITETHRU
|
|
#define _PAGE_WRITETHRU 0
|
|
#define _PAGE_WRITETHRU 0
|
|
#endif
|
|
#endif
|
|
-#ifndef _PAGE_SAO
|
|
|
|
-#define _PAGE_SAO 0
|
|
|
|
-#endif
|
|
|
|
/* _PAGE_RO and _PAGE_RW shall not be defined at the same time */
|
|
/* _PAGE_RO and _PAGE_RW shall not be defined at the same time */
|
|
#ifndef _PAGE_RO
|
|
#ifndef _PAGE_RO
|
|
#define _PAGE_RO 0
|
|
#define _PAGE_RO 0
|
|
@@ -61,35 +58,3 @@
|
|
*/
|
|
*/
|
|
#define _PAGE_CHG_MASK (PTE_RPN_MASK | _PAGE_DIRTY | \
|
|
#define _PAGE_CHG_MASK (PTE_RPN_MASK | _PAGE_DIRTY | \
|
|
_PAGE_ACCESSED | _PAGE_SPECIAL)
|
|
_PAGE_ACCESSED | _PAGE_SPECIAL)
|
|
-
|
|
|
|
-/* Permission masks used for kernel mappings */
|
|
|
|
-#define PAGE_KERNEL __pgprot(_PAGE_BASE | _PAGE_KERNEL_RW)
|
|
|
|
-#define PAGE_KERNEL_NC __pgprot(_PAGE_BASE_NC | _PAGE_KERNEL_RW | \
|
|
|
|
- _PAGE_NO_CACHE)
|
|
|
|
-#define PAGE_KERNEL_NCG __pgprot(_PAGE_BASE_NC | _PAGE_KERNEL_RW | \
|
|
|
|
- _PAGE_NO_CACHE | _PAGE_GUARDED)
|
|
|
|
-#define PAGE_KERNEL_X __pgprot(_PAGE_BASE | _PAGE_KERNEL_RWX)
|
|
|
|
-#define PAGE_KERNEL_RO __pgprot(_PAGE_BASE | _PAGE_KERNEL_RO)
|
|
|
|
-#define PAGE_KERNEL_ROX __pgprot(_PAGE_BASE | _PAGE_KERNEL_ROX)
|
|
|
|
-
|
|
|
|
-/* Protection used for kernel text. We want the debuggers to be able to
|
|
|
|
- * set breakpoints anywhere, so don't write protect the kernel text
|
|
|
|
- * on platforms where such control is possible.
|
|
|
|
- */
|
|
|
|
-#if defined(CONFIG_KGDB) || defined(CONFIG_XMON) || defined(CONFIG_BDI_SWITCH) ||\
|
|
|
|
- defined(CONFIG_KPROBES) || defined(CONFIG_DYNAMIC_FTRACE)
|
|
|
|
-#define PAGE_KERNEL_TEXT PAGE_KERNEL_X
|
|
|
|
-#else
|
|
|
|
-#define PAGE_KERNEL_TEXT PAGE_KERNEL_ROX
|
|
|
|
-#endif
|
|
|
|
-
|
|
|
|
-/* Make modules code happy. We don't set RO yet */
|
|
|
|
-#define PAGE_KERNEL_EXEC PAGE_KERNEL_X
|
|
|
|
-
|
|
|
|
-/* Advertise special mapping type for AGP */
|
|
|
|
-#define PAGE_AGP (PAGE_KERNEL_NC)
|
|
|
|
-#define HAVE_PAGE_AGP
|
|
|
|
-
|
|
|
|
-#ifndef H_PAGE_4K_PFN
|
|
|
|
-#define H_PAGE_4K_PFN 0
|
|
|
|
-#endif
|
|
|