Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 97014
b: refs/heads/master
c: a8375bd
h: refs/heads/master
v: v3
  • Loading branch information
Hugh Dickins authored and Linus Torvalds committed May 20, 2008
1 parent 9354463 commit a300507
Show file tree
Hide file tree
Showing 2 changed files with 7 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: cbb3077cbe718795d7ae5d78ed11659ca73c97b9
refs/heads/master: a8375bd81cf99cb81be37127eaf08316ecb87619
12 changes: 6 additions & 6 deletions trunk/include/asm-x86/pgtable_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,19 +151,19 @@ static inline void native_pgd_clear(pgd_t *pgd)

#ifndef __ASSEMBLY__

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

static inline unsigned long pud_bad(pud_t pud)
static inline int pud_bad(pud_t pud)
{
return pud_val(pud) & ~(PTE_MASK | _KERNPG_TABLE | _PAGE_USER);
return (pud_val(pud) & ~(PTE_MASK | _PAGE_USER)) != _KERNPG_TABLE;
}

static inline unsigned long pmd_bad(pmd_t pmd)
static inline int pmd_bad(pmd_t pmd)
{
return pmd_val(pmd) & ~(PTE_MASK | _KERNPG_TABLE | _PAGE_USER);
return (pmd_val(pmd) & ~(PTE_MASK | _PAGE_USER)) != _KERNPG_TABLE;
}

#define pte_none(x) (!pte_val((x)))
Expand Down

0 comments on commit a300507

Please sign in to comment.