X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=arch%2Farm%2Fmm%2Ffault.c;h=0455557a289957e13bab0ef74a37ff0ebe5052d8;hb=7eb19553369c46cc1fa64caf120cbcab1b597f7c;hp=22c9530e91e2fd8568fa78e1e5aec95ed7a72a24;hpb=54d2f649a67109d877ca143c09cdeba61fe51bcf;p=linux-2.6-omap-h63xx.git diff --git a/arch/arm/mm/fault.c b/arch/arm/mm/fault.c index 22c9530e91e..0455557a289 100644 --- a/arch/arm/mm/fault.c +++ b/arch/arm/mm/fault.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include @@ -84,13 +85,14 @@ void show_pte(struct mm_struct *mm, unsigned long addr) break; } -#ifndef CONFIG_HIGHMEM /* We must not map this if we have highmem enabled */ + if (PageHighMem(pfn_to_page(pmd_val(*pmd) >> PAGE_SHIFT))) + break; + pte = pte_offset_map(pmd, addr); printk(", *pte=%08lx", pte_val(*pte)); printk(", *ppte=%08lx", pte_val(pte[-PTRS_PER_PTE])); pte_unmap(pte); -#endif } while(0); printk("\n");