diff options
Diffstat (limited to 'arch/microblaze/include/asm/page.h')
-rw-r--r-- | arch/microblaze/include/asm/page.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/microblaze/include/asm/page.h b/arch/microblaze/include/asm/page.h index 880c988c2237..9b66c0fa9a32 100644 --- a/arch/microblaze/include/asm/page.h +++ b/arch/microblaze/include/asm/page.h | |||
@@ -164,7 +164,8 @@ extern int page_is_ram(unsigned long pfn); | |||
164 | # endif /* CONFIG_MMU */ | 164 | # endif /* CONFIG_MMU */ |
165 | 165 | ||
166 | # ifndef CONFIG_MMU | 166 | # ifndef CONFIG_MMU |
167 | # define pfn_valid(pfn) ((pfn) >= min_low_pfn && (pfn) <= max_mapnr) | 167 | # define pfn_valid(pfn) (((pfn) >= min_low_pfn) && \ |
168 | ((pfn) <= (min_low_pfn + max_mapnr))) | ||
168 | # define ARCH_PFN_OFFSET (PAGE_OFFSET >> PAGE_SHIFT) | 169 | # define ARCH_PFN_OFFSET (PAGE_OFFSET >> PAGE_SHIFT) |
169 | # else /* CONFIG_MMU */ | 170 | # else /* CONFIG_MMU */ |
170 | # define ARCH_PFN_OFFSET (memory_start >> PAGE_SHIFT) | 171 | # define ARCH_PFN_OFFSET (memory_start >> PAGE_SHIFT) |