Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 344774
b: refs/heads/master
c: 2c3cf55
h: refs/heads/master
v: v3
  • Loading branch information
Rik van Riel authored and Mel Gorman committed Dec 11, 2012
1 parent 14a3147 commit fda06fe
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cef23d9db6b76732d9b0933cb162358a6a1f43d7
refs/heads/master: 2c3cf556b2f7ab5823195766eddec6f1a43134f5
6 changes: 6 additions & 0 deletions trunk/arch/x86/include/asm/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,12 @@ static inline int pte_present(pte_t a)
return pte_flags(a) & (_PAGE_PRESENT | _PAGE_PROTNONE);
}

#define pte_accessible pte_accessible
static inline int pte_accessible(pte_t a)
{
return pte_flags(a) & _PAGE_PRESENT;
}

static inline int pte_hidden(pte_t pte)
{
return pte_flags(pte) & _PAGE_HIDDEN;
Expand Down
4 changes: 4 additions & 0 deletions trunk/include/asm-generic/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,10 @@ static inline int pmd_same(pmd_t pmd_a, pmd_t pmd_b)
#define move_pte(pte, prot, old_addr, new_addr) (pte)
#endif

#ifndef pte_accessible
# define pte_accessible(pte) ((void)(pte),1)
#endif

#ifndef flush_tlb_fix_spurious_fault
#define flush_tlb_fix_spurious_fault(vma, address) flush_tlb_page(vma, address)
#endif
Expand Down

0 comments on commit fda06fe

Please sign in to comment.