summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/pgtable_types.h
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2013-12-06 21:13:04 +0000
committerMatt Fleming <matt.fleming@intel.com>2014-03-04 21:23:36 +0000
commit426e34cc4f6094cefe4f3175764cdf583128e7cd (patch)
treee8dab070cd83c3064cd91db25017386fea3c8877 /arch/x86/include/asm/pgtable_types.h
parent993c30a04e205fb239c0875b25b43ddef0499845 (diff)
downloadlinux-0-day-426e34cc4f6094cefe4f3175764cdf583128e7cd.tar.gz
linux-0-day-426e34cc4f6094cefe4f3175764cdf583128e7cd.tar.xz
x86/mm/pageattr: Always dump the right page table in an oops
Now that we have EFI-specific page tables we need to lookup the pgd when dumping those page tables, rather than assuming that swapper_pgdir is the current pgdir. Remove the double underscore prefix, which is usually reserved for static functions. Acked-by: Borislav Petkov <bp@suse.de> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'arch/x86/include/asm/pgtable_types.h')
-rw-r--r--arch/x86/include/asm/pgtable_types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/include/asm/pgtable_types.h b/arch/x86/include/asm/pgtable_types.h
index 1aa9ccd432236..24ae4211ba341 100644
--- a/arch/x86/include/asm/pgtable_types.h
+++ b/arch/x86/include/asm/pgtable_types.h
@@ -382,6 +382,8 @@ static inline void update_page_count(int level, unsigned long pages) { }
* as a pte too.
*/
extern pte_t *lookup_address(unsigned long address, unsigned int *level);
+extern pte_t *lookup_address_in_pgd(pgd_t *pgd, unsigned long address,
+ unsigned int *level);
extern phys_addr_t slow_virt_to_phys(void *__address);
extern int kernel_map_pages_in_pgd(pgd_t *pgd, u64 pfn, unsigned long address,
unsigned numpages, unsigned long page_flags);