Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 362530
b: refs/heads/master
c: f76cfa3
h: refs/heads/master
v: v3
  • Loading branch information
Andrea Arcangeli authored and Ingo Molnar committed Apr 11, 2013
1 parent 90c5ff6 commit bc45a92
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: 511ba86e1d386f671084b5d0e6f110bb30b8eeb2
refs/heads/master: f76cfa3c2496c462b5bc01bd0c9340c2715b73ca
10 changes: 5 additions & 5 deletions trunk/arch/x86/mm/pageattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ try_preserve_large_page(pte_t *kpte, unsigned long address,
* We are safe now. Check whether the new pgprot is the same:
*/
old_pte = *kpte;
old_prot = new_prot = req_prot = pte_pgprot(old_pte);
old_prot = req_prot = pte_pgprot(old_pte);

pgprot_val(req_prot) &= ~pgprot_val(cpa->mask_clr);
pgprot_val(req_prot) |= pgprot_val(cpa->mask_set);
Expand All @@ -478,12 +478,12 @@ try_preserve_large_page(pte_t *kpte, unsigned long address,
* a non present pmd. The canon_pgprot will clear _PAGE_GLOBAL
* for the ancient hardware that doesn't support it.
*/
if (pgprot_val(new_prot) & _PAGE_PRESENT)
pgprot_val(new_prot) |= _PAGE_PSE | _PAGE_GLOBAL;
if (pgprot_val(req_prot) & _PAGE_PRESENT)
pgprot_val(req_prot) |= _PAGE_PSE | _PAGE_GLOBAL;
else
pgprot_val(new_prot) &= ~(_PAGE_PSE | _PAGE_GLOBAL);
pgprot_val(req_prot) &= ~(_PAGE_PSE | _PAGE_GLOBAL);

new_prot = canon_pgprot(new_prot);
req_prot = canon_pgprot(req_prot);

/*
* old_pte points to the large page base address. So we need
Expand Down

0 comments on commit bc45a92

Please sign in to comment.