Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 136806
b: refs/heads/master
c: 30f1031
h: refs/heads/master
v: v3
  • Loading branch information
Jeremy Fitzhardinge committed Feb 6, 2009
1 parent f18edc2 commit bf9f93f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 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: 3f6cbef1d7f474d16f3a824c6d2910d930778fbd
refs/heads/master: 30f103167fcf2b08de64f5f37ece6bfff7392290
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 @@ -574,6 +574,11 @@ static inline pud_t *pud_offset(pgd_t *pgd, unsigned long address)
{
return (pud_t *)pgd_page_vaddr(*pgd) + pud_index(address);
}

static inline int pgd_bad(pgd_t pgd)
{
return (pgd_val(pgd) & ~(PTE_PFN_MASK | _PAGE_USER)) != _KERNPG_TABLE;
}
#endif /* PAGETABLE_LEVELS > 3 */

#endif /* __ASSEMBLY__ */
Expand Down
5 changes: 0 additions & 5 deletions trunk/arch/x86/include/asm/pgtable_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,6 @@ static inline void native_pgd_clear(pgd_t *pgd)

#ifndef __ASSEMBLY__

static inline int pgd_bad(pgd_t pgd)
{
return (pgd_val(pgd) & ~(PTE_PFN_MASK | _PAGE_USER)) != _KERNPG_TABLE;
}

static inline int pud_bad(pud_t pud)
{
return (pud_val(pud) & ~(PTE_PFN_MASK | _PAGE_USER)) != _KERNPG_TABLE;
Expand Down

0 comments on commit bf9f93f

Please sign in to comment.