Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 136785
b: refs/heads/master
c: 5ba7c91
h: refs/heads/master
i:
  136783: 61901a9
v: v3
  • Loading branch information
Jeremy Fitzhardinge committed Feb 6, 2009
1 parent ac9635c commit 3b64e56
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 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: 7c683851d96c8313586c0695b25ca41bde9f0f73
refs/heads/master: 5ba7c91341be61e0942f792c237ac067d9f32f51
5 changes: 0 additions & 5 deletions trunk/arch/x86/include/asm/pgtable-3level.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ static inline int pud_bad(pud_t pud)
return (pud_val(pud) & ~(PTE_PFN_MASK | _KERNPG_TABLE | _PAGE_USER)) != 0;
}

static inline int pud_present(pud_t pud)
{
return pud_val(pud) & _PAGE_PRESENT;
}

/* Rules for using set_pte: the pte being assigned *must* be
* either not present or in a state where the hardware will
* not attempt to update the pte. In places where this is
Expand Down
7 changes: 7 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,13 @@ static inline int pte_present(pte_t a)
return pte_flags(a) & (_PAGE_PRESENT | _PAGE_PROTNONE);
}

#if PAGETABLE_LEVELS > 2
static inline int pud_present(pud_t pud)
{
return pud_val(pud) & _PAGE_PRESENT;
}
#endif /* PAGETABLE_LEVELS > 2 */

#endif /* __ASSEMBLY__ */

#ifdef CONFIG_X86_32
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 @@ -194,7 +194,6 @@ static inline int pgd_large(pgd_t pgd) { return 0; }
#define pud_index(address) (((address) >> PUD_SHIFT) & (PTRS_PER_PUD - 1))
#define pud_offset(pgd, address) \
((pud_t *)pgd_page_vaddr(*(pgd)) + pud_index((address)))
#define pud_present(pud) (pud_val((pud)) & _PAGE_PRESENT)

static inline int pud_large(pud_t pte)
{
Expand Down

0 comments on commit 3b64e56

Please sign in to comment.