Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 53913
b: refs/heads/master
c: c2c1acc
h: refs/heads/master
i:
  53911: d9cb52c
v: v3
  • Loading branch information
Zachary Amsden authored and Andi Kleen committed May 2, 2007
1 parent 5f6bc6c commit 047bf27
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 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: df3624aa293dfa2d46089747d919711089a702eb
refs/heads/master: c2c1accd4b2f9c82fb89d40611c7f581948db255
5 changes: 5 additions & 0 deletions trunk/include/asm-i386/pgtable-2level.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ static inline void native_set_pmd(pmd_t *pmdp, pmd_t pmd)
#define pte_clear(mm,addr,xp) do { set_pte_at(mm, addr, xp, __pte(0)); } while (0)
#define pmd_clear(xp) do { set_pmd(xp, __pmd(0)); } while (0)

static inline void native_pte_clear(struct mm_struct *mm, unsigned long addr, pte_t *xp)
{
*xp = __pte(0);
}

static inline pte_t native_ptep_get_and_clear(pte_t *xp)
{
return __pte(xchg(&xp->pte_low, 0));
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-i386/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ static inline pte_t ptep_get_and_clear_full(struct mm_struct *mm, unsigned long
pte_t pte;
if (full) {
pte = *ptep;
pte_clear(mm, addr, ptep);
native_pte_clear(mm, addr, ptep);
} else {
pte = ptep_get_and_clear(mm, addr, ptep);
}
Expand Down

0 comments on commit 047bf27

Please sign in to comment.