diff options
Diffstat (limited to 'include/asm-mips')
-rw-r--r-- | include/asm-mips/page.h | 3 | ||||
-rw-r--r-- | include/asm-mips/processor.h | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/include/asm-mips/page.h b/include/asm-mips/page.h index 494f00ba9541..fe7a88ea066e 100644 --- a/include/asm-mips/page.h +++ b/include/asm-mips/page.h | |||
@@ -137,9 +137,6 @@ typedef struct { unsigned long pgprot; } pgprot_t; | |||
137 | 137 | ||
138 | #endif /* !__ASSEMBLY__ */ | 138 | #endif /* !__ASSEMBLY__ */ |
139 | 139 | ||
140 | /* to align the pointer to the (next) page boundary */ | ||
141 | #define PAGE_ALIGN(addr) (((addr) + PAGE_SIZE - 1) & PAGE_MASK) | ||
142 | |||
143 | /* | 140 | /* |
144 | * __pa()/__va() should be used only during mem init. | 141 | * __pa()/__va() should be used only during mem init. |
145 | */ | 142 | */ |
diff --git a/include/asm-mips/processor.h b/include/asm-mips/processor.h index 58cbac5a64e4..a1e4453469f9 100644 --- a/include/asm-mips/processor.h +++ b/include/asm-mips/processor.h | |||
@@ -45,7 +45,7 @@ extern unsigned int vced_count, vcei_count; | |||
45 | * This decides where the kernel will search for a free chunk of vm | 45 | * This decides where the kernel will search for a free chunk of vm |
46 | * space during mmap's. | 46 | * space during mmap's. |
47 | */ | 47 | */ |
48 | #define TASK_UNMAPPED_BASE (PAGE_ALIGN(TASK_SIZE / 3)) | 48 | #define TASK_UNMAPPED_BASE ((TASK_SIZE / 3) & ~(PAGE_SIZE)) |
49 | #endif | 49 | #endif |
50 | 50 | ||
51 | #ifdef CONFIG_64BIT | 51 | #ifdef CONFIG_64BIT |