Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 97009
b: refs/heads/master
c: a4d6886
h: refs/heads/master
i:
  97007: 1f62d96
v: v3
  • Loading branch information
Jeremy Fitzhardinge authored and Linus Torvalds committed May 20, 2008
1 parent 52c8341 commit a3d431e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: c57c05d0032cd5a500c5eba18ede4867a6d2cd5f
refs/heads/master: a4d6886270a5c892d71cd6e09186196a150a50dc
6 changes: 3 additions & 3 deletions trunk/include/asm-x86/pgtable-3level.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ static inline void pud_clear(pud_t *pudp)
write_cr3(pgd);
}

#define pud_page(pud) ((struct page *) __va(pud_val(pud) & PAGE_MASK))
#define pud_page(pud) ((struct page *) __va(pud_val(pud) & PTE_MASK))

#define pud_page_vaddr(pud) ((unsigned long) __va(pud_val(pud) & PAGE_MASK))
#define pud_page_vaddr(pud) ((unsigned long) __va(pud_val(pud) & PTE_MASK))


/* Find an entry in the second-level page table.. */
Expand Down Expand Up @@ -160,7 +160,7 @@ static inline int pte_none(pte_t pte)

static inline unsigned long pte_pfn(pte_t pte)
{
return (pte_val(pte) & ~_PAGE_NX) >> PAGE_SHIFT;
return (pte_val(pte) & PTE_MASK) >> PAGE_SHIFT;
}

/*
Expand Down

0 comments on commit a3d431e

Please sign in to comment.