diff options
author | Christoph Lameter <clameter@sgi.com> | 2008-02-05 01:28:33 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-05 12:44:14 -0500 |
commit | 0b7a96114bd5991d355a1f1c1d3d9c0c9d9c1cfc (patch) | |
tree | d39101677aaa7214055c7098f5650a631dfeb74d /include/asm-x86/pgtable_32.h | |
parent | b3bdda02aa547a0753b4fdbc105e86ef9046b30b (diff) |
i386: Resolve dependency of asm-i386/pgtable.h on highmem.h
pgtable.h does not include highmem.h but uses various constants from
highmem.h. We cannot include highmem.h because highmem.h will in turn include
many other include files that also depend on pgtable.h
So move the definitions from highmem.h into pgtable.h.
[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/asm-x86/pgtable_32.h')
-rw-r--r-- | include/asm-x86/pgtable_32.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asm-x86/pgtable_32.h b/include/asm-x86/pgtable_32.h index 935630d17304..80dd438642f6 100644 --- a/include/asm-x86/pgtable_32.h +++ b/include/asm-x86/pgtable_32.h | |||
@@ -66,6 +66,14 @@ void paging_init(void); | |||
66 | #define VMALLOC_OFFSET (8*1024*1024) | 66 | #define VMALLOC_OFFSET (8*1024*1024) |
67 | #define VMALLOC_START (((unsigned long) high_memory + \ | 67 | #define VMALLOC_START (((unsigned long) high_memory + \ |
68 | 2*VMALLOC_OFFSET-1) & ~(VMALLOC_OFFSET-1)) | 68 | 2*VMALLOC_OFFSET-1) & ~(VMALLOC_OFFSET-1)) |
69 | #ifdef CONFIG_X86_PAE | ||
70 | #define LAST_PKMAP 512 | ||
71 | #else | ||
72 | #define LAST_PKMAP 1024 | ||
73 | #endif | ||
74 | |||
75 | #define PKMAP_BASE ((FIXADDR_BOOT_START - PAGE_SIZE*(LAST_PKMAP + 1)) & PMD_MASK) | ||
76 | |||
69 | #ifdef CONFIG_HIGHMEM | 77 | #ifdef CONFIG_HIGHMEM |
70 | # define VMALLOC_END (PKMAP_BASE-2*PAGE_SIZE) | 78 | # define VMALLOC_END (PKMAP_BASE-2*PAGE_SIZE) |
71 | #else | 79 | #else |