Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 88229
b: refs/heads/master
c: a31b9dd
h: refs/heads/master
i:
  88227: 279bfff
v: v3
  • Loading branch information
David Howells authored and Linus Torvalds committed Apr 10, 2008
1 parent 6daa37b commit 53544a6
Show file tree
Hide file tree
Showing 2 changed files with 15 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: 5d69a029ab13ddef5bdad69174fabafada4a87fd
refs/heads/master: a31b9dd8edc6e4e75b5299fee6093b3c54548446
19 changes: 14 additions & 5 deletions trunk/include/asm-frv/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -507,13 +507,22 @@ static inline int pte_file(pte_t pte)
*/
static inline void update_mmu_cache(struct vm_area_struct *vma, unsigned long address, pte_t pte)
{
struct mm_struct *mm;
unsigned long ampr;
pgd_t *pge = pgd_offset(current->mm, address);
pud_t *pue = pud_offset(pge, address);
pmd_t *pme = pmd_offset(pue, address);

ampr = pme->ste[0] & 0xffffff00;
ampr |= xAMPRx_L | xAMPRx_SS_16Kb | xAMPRx_S | xAMPRx_C | xAMPRx_V;
mm = current->mm;
if (mm) {
pgd_t *pge = pgd_offset(mm, address);
pud_t *pue = pud_offset(pge, address);
pmd_t *pme = pmd_offset(pue, address);

ampr = pme->ste[0] & 0xffffff00;
ampr |= xAMPRx_L | xAMPRx_SS_16Kb | xAMPRx_S | xAMPRx_C |
xAMPRx_V;
} else {
address = ULONG_MAX;
ampr = 0;
}

asm volatile("movgs %0,scr0\n"
"movgs %0,scr1\n"
Expand Down

0 comments on commit 53544a6

Please sign in to comment.