aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/pgtable.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2008-01-30 07:34:04 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:34:04 -0500
commit30551bb3ce9257a2352b3cb4e45010d415cc0ad5 (patch)
treeedcf2a24fc689ecb4a0420c0d555d042002ecacf /include/asm-x86/pgtable.h
parent0a663088cd6ff9e89f285ae7689e6eee46cfb54c (diff)
x86: add PG_LEVEL enum
this way PG_LEVEL_1GB will be an easy change. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/asm-x86/pgtable.h')
-rw-r--r--include/asm-x86/pgtable.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/asm-x86/pgtable.h b/include/asm-x86/pgtable.h
index 4409dabe31c6..7aa34c8eb220 100644
--- a/include/asm-x86/pgtable.h
+++ b/include/asm-x86/pgtable.h
@@ -234,6 +234,12 @@ static inline pte_t pte_modify(pte_t pte, pgprot_t newprot)
234 234
235#ifndef __ASSEMBLY__ 235#ifndef __ASSEMBLY__
236 236
237enum {
238 PG_LEVEL_NONE,
239 PG_LEVEL_4K,
240 PG_LEVEL_2M,
241};
242
237/* 243/*
238 * Helper function that returns the kernel pagetable entry controlling 244 * Helper function that returns the kernel pagetable entry controlling
239 * the virtual address 'address'. NULL means no pagetable entry present. 245 * the virtual address 'address'. NULL means no pagetable entry present.