projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
x86: unify pmd_bad
[deliverable/linux.git]
/
arch
/
x86
/
include
/
asm
/
pgtable.h
diff --git
a/arch/x86/include/asm/pgtable.h
b/arch/x86/include/asm/pgtable.h
index 38882f6cc827b29cee42c664560567e316b86180..72bf53ef60bf5bc9b990b3b4efe362114f3e9f00 100644
(file)
--- a/
arch/x86/include/asm/pgtable.h
+++ b/
arch/x86/include/asm/pgtable.h
@@
-514,6
+514,11
@@
static inline pte_t *pte_offset_kernel(pmd_t *pmd, unsigned long address)
return (pte_t *)pmd_page_vaddr(*pmd) + pte_index(address);
}
+static inline int pmd_bad(pmd_t pmd)
+{
+ return (pmd_val(pmd) & ~(PTE_PFN_MASK | _PAGE_USER)) != _KERNPG_TABLE;
+}
+
#if PAGETABLE_LEVELS > 2
static inline int pud_present(pud_t pud)
{
This page took
0.025928 seconds
and
5
git commands to generate.