Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 104858
b: refs/heads/master
c: c2e3277
h: refs/heads/master
v: v3
  • Loading branch information
Rusty Russell authored and Ingo Molnar committed Jul 22, 2008
1 parent add7ebd commit 7193546
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 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: 988781dc3e1d9209192b04458d279815923f5e76
refs/heads/master: c2e3277f875b83e5adc34e96989d6d87ec5f80f7
2 changes: 1 addition & 1 deletion trunk/arch/x86/kernel/paravirt.c
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ struct pv_mmu_ops pv_mmu_ops = {
#endif /* PAGETABLE_LEVELS >= 3 */

.pte_val = native_pte_val,
.pte_flags = native_pte_val,
.pte_flags = native_pte_flags,
.pgd_val = native_pgd_val,

.make_pte = native_make_pte,
Expand Down
7 changes: 6 additions & 1 deletion trunk/include/asm-x86/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@ static inline pteval_t native_pte_val(pte_t pte)
return pte.pte;
}

static inline pteval_t native_pte_flags(pte_t pte)
{
return native_pte_val(pte) & ~PTE_MASK;
}

#define pgprot_val(x) ((x).pgprot)
#define __pgprot(x) ((pgprot_t) { (x) } )

Expand All @@ -165,7 +170,7 @@ static inline pteval_t native_pte_val(pte_t pte)
#endif

#define pte_val(x) native_pte_val(x)
#define pte_flags(x) native_pte_val(x)
#define pte_flags(x) native_pte_flags(x)
#define __pte(x) native_make_pte(x)

#endif /* CONFIG_PARAVIRT */
Expand Down
3 changes: 3 additions & 0 deletions trunk/include/asm-x86/paravirt.h
Original file line number Diff line number Diff line change
Expand Up @@ -1088,6 +1088,9 @@ static inline pteval_t pte_flags(pte_t pte)
ret = PVOP_CALL1(pteval_t, pv_mmu_ops.pte_flags,
pte.pte);

#ifdef CONFIG_PARAVIRT_DEBUG
BUG_ON(ret & PTE_MASK);
#endif
return ret;
}

Expand Down

0 comments on commit 7193546

Please sign in to comment.