diff options
-rw-r--r-- | include/asm-mips/page.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/include/asm-mips/page.h b/include/asm-mips/page.h index 6ed1151a05a3..219d359861f3 100644 --- a/include/asm-mips/page.h +++ b/include/asm-mips/page.h | |||
@@ -14,8 +14,6 @@ | |||
14 | 14 | ||
15 | #include <spaces.h> | 15 | #include <spaces.h> |
16 | 16 | ||
17 | #endif | ||
18 | |||
19 | /* | 17 | /* |
20 | * PAGE_SHIFT determines the page size | 18 | * PAGE_SHIFT determines the page size |
21 | */ | 19 | */ |
@@ -34,8 +32,6 @@ | |||
34 | #define PAGE_SIZE (1UL << PAGE_SHIFT) | 32 | #define PAGE_SIZE (1UL << PAGE_SHIFT) |
35 | #define PAGE_MASK (~((1 << PAGE_SHIFT) - 1)) | 33 | #define PAGE_MASK (~((1 << PAGE_SHIFT) - 1)) |
36 | 34 | ||
37 | |||
38 | #ifdef __KERNEL__ | ||
39 | #ifndef __ASSEMBLY__ | 35 | #ifndef __ASSEMBLY__ |
40 | 36 | ||
41 | extern void clear_page(void * page); | 37 | extern void clear_page(void * page); |
@@ -168,8 +164,6 @@ typedef struct { unsigned long pgprot; } pgprot_t; | |||
168 | #define UNCAC_ADDR(addr) ((addr) - PAGE_OFFSET + UNCAC_BASE) | 164 | #define UNCAC_ADDR(addr) ((addr) - PAGE_OFFSET + UNCAC_BASE) |
169 | #define CAC_ADDR(addr) ((addr) - UNCAC_BASE + PAGE_OFFSET) | 165 | #define CAC_ADDR(addr) ((addr) - UNCAC_BASE + PAGE_OFFSET) |
170 | 166 | ||
171 | #endif /* defined (__KERNEL__) */ | ||
172 | |||
173 | #ifdef CONFIG_LIMITED_DMA | 167 | #ifdef CONFIG_LIMITED_DMA |
174 | #define WANT_PAGE_VIRTUAL | 168 | #define WANT_PAGE_VIRTUAL |
175 | #endif | 169 | #endif |
@@ -177,4 +171,6 @@ typedef struct { unsigned long pgprot; } pgprot_t; | |||
177 | #include <asm-generic/memory_model.h> | 171 | #include <asm-generic/memory_model.h> |
178 | #include <asm-generic/page.h> | 172 | #include <asm-generic/page.h> |
179 | 173 | ||
174 | #endif /* defined (__KERNEL__) */ | ||
175 | |||
180 | #endif /* _ASM_PAGE_H */ | 176 | #endif /* _ASM_PAGE_H */ |