Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83201
b: refs/heads/master
c: 909e90d
h: refs/heads/master
i:
  83199: c9fbca1
v: v3
  • Loading branch information
Jeff Dike authored and Linus Torvalds committed Feb 5, 2008
1 parent 2579b3a commit 88aa5c2
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 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: 1adfd6095e1c654dce5a692db5aa5a2b2a8d6b0d
refs/heads/master: 909e90d3c410b684e564729145f7c20dad887757
8 changes: 4 additions & 4 deletions trunk/arch/um/kernel/tlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ static inline int update_pte_range(pmd_t *pmd, unsigned long addr,
else if (pte_newprot(*pte))
ret = add_mprotect(addr, PAGE_SIZE, prot, hvc);
*pte = pte_mkuptodate(*pte);
} while (pte++, addr += PAGE_SIZE, ((addr != end) && !ret));
} while (pte++, addr += PAGE_SIZE, ((addr < end) && !ret));
return ret;
}

Expand All @@ -229,7 +229,7 @@ static inline int update_pmd_range(pud_t *pud, unsigned long addr,
}
}
else ret = update_pte_range(pmd, addr, next, hvc);
} while (pmd++, addr = next, ((addr != end) && !ret));
} while (pmd++, addr = next, ((addr < end) && !ret));
return ret;
}

Expand All @@ -251,7 +251,7 @@ static inline int update_pud_range(pgd_t *pgd, unsigned long addr,
}
}
else ret = update_pmd_range(pud, addr, next, hvc);
} while (pud++, addr = next, ((addr != end) && !ret));
} while (pud++, addr = next, ((addr < end) && !ret));
return ret;
}

Expand All @@ -274,7 +274,7 @@ void fix_range_common(struct mm_struct *mm, unsigned long start_addr,
}
}
else ret = update_pud_range(pgd, addr, next, &hvc);
} while (pgd++, addr = next, ((addr != end_addr) && !ret));
} while (pgd++, addr = next, ((addr < end_addr) && !ret));

if (!ret)
ret = do_ops(&hvc, hvc.index, 1);
Expand Down
3 changes: 0 additions & 3 deletions trunk/include/asm-um/pgtable-2level.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ static inline void pgd_mkuptodate(pgd_t pgd) { }
#define pfn_pte(pfn, prot) __pte(pfn_to_phys(pfn) | pgprot_val(prot))
#define pfn_pmd(pfn, prot) __pmd(pfn_to_phys(pfn) | pgprot_val(prot))

#define pmd_page_vaddr(pmd) \
((unsigned long) __va(pmd_val(pmd) & PAGE_MASK))

/*
* Bits 0 through 4 are taken
*/
Expand Down
3 changes: 1 addition & 2 deletions trunk/include/asm-um/pgtable-3level.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ static inline void pud_clear (pud_t *pud)
}

#define pud_page(pud) phys_to_page(pud_val(pud) & PAGE_MASK)
#define pud_page_vaddr(pud) \
((struct page *) __va(pud_val(pud) & PAGE_MASK))
#define pud_page_vaddr(pud) ((unsigned long) __va(pud_val(pud) & PAGE_MASK))

/* Find an entry in the second-level page table.. */
#define pmd_offset(pud, address) ((pmd_t *) pud_page_vaddr(*(pud)) + \
Expand Down
3 changes: 3 additions & 0 deletions trunk/include/asm-um/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,9 @@ static inline pte_t pte_modify(pte_t pte, pgprot_t newprot)
#define pmd_page_vaddr(pmd) ((unsigned long) __va(pmd_val(pmd) & PAGE_MASK))
#define pmd_index(address) (((address) >> PMD_SHIFT) & (PTRS_PER_PMD-1))

#define pmd_page_vaddr(pmd) \
((unsigned long) __va(pmd_val(pmd) & PAGE_MASK))

/*
* the pte page can be thought of an array like this: pte_t[PTRS_PER_PTE]
*
Expand Down

0 comments on commit 88aa5c2

Please sign in to comment.