Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 136787
b: refs/heads/master
c: 649e8ef
h: refs/heads/master
i:
  136785: 3b64e56
  136783: 61901a9
v: v3
  • Loading branch information
Jeremy Fitzhardinge committed Feb 6, 2009
1 parent faf431c commit 54d0db2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9f38d7e85e914f10a875f65d283432d55a12fc27
refs/heads/master: 649e8ef60fac0a2f6960cdb090d73e78717ac065
5 changes: 5 additions & 0 deletions trunk/arch/x86/include/asm/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,11 @@ static inline int pte_present(pte_t a)
return pte_flags(a) & (_PAGE_PRESENT | _PAGE_PROTNONE);
}

static inline int pmd_present(pmd_t pmd)
{
return pmd_val(pmd) & _PAGE_PRESENT;
}

#if PAGETABLE_LEVELS > 2
static inline int pud_present(pud_t pud)
{
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/x86/include/asm/pgtable_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ extern unsigned long pg0[];

/* To avoid harmful races, pmd_none(x) should check only the lower when PAE */
#define pmd_none(x) (!(unsigned long)pmd_val((x)))
#define pmd_present(x) (pmd_val((x)) & _PAGE_PRESENT)
#define pmd_bad(x) ((pmd_val(x) & (PTE_FLAGS_MASK & ~_PAGE_USER)) != _KERNPG_TABLE)

#define pages_to_mb(x) ((x) >> (20-PAGE_SHIFT))
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/x86/include/asm/pgtable_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ static inline int pud_large(pud_t pte)
#define pmd_offset(dir, address) ((pmd_t *)pud_page_vaddr(*(dir)) + \
pmd_index(address))
#define pmd_none(x) (!pmd_val((x)))
#define pmd_present(x) (pmd_val((x)) & _PAGE_PRESENT)
#define pfn_pmd(nr, prot) (__pmd(((nr) << PAGE_SHIFT) | pgprot_val((prot))))
#define pmd_pfn(x) ((pmd_val((x)) & __PHYSICAL_MASK) >> PAGE_SHIFT)

Expand Down

0 comments on commit 54d0db2

Please sign in to comment.