diff options
author | Jeff Dike <jdike@addtoit.com> | 2008-02-05 01:30:55 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-05 12:44:28 -0500 |
commit | ca77b555c0aafa3070fbb67592abaaa1b8d31913 (patch) | |
tree | fb0b42c68879599b65dc897153923ffadca408ab /include | |
parent | 655e4ed0c521dcfdbf1c5a79da971560e6733527 (diff) |
uml: add virt_to_pte
Turn um_virt_to_phys into virt_to_pte, cleaning up a horrid interface.
It's also made non-static and declared in pgtable.h because it'll be
needed when the stubs get a vma.
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-um/pgtable.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-um/pgtable.h b/include/asm-um/pgtable.h index 62ab94a4f1b6..fb477774a2e9 100644 --- a/include/asm-um/pgtable.h +++ b/include/asm-um/pgtable.h | |||
@@ -323,6 +323,9 @@ static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) | |||
323 | #define pte_unmap(pte) do { } while (0) | 323 | #define pte_unmap(pte) do { } while (0) |
324 | #define pte_unmap_nested(pte) do { } while (0) | 324 | #define pte_unmap_nested(pte) do { } while (0) |
325 | 325 | ||
326 | struct mm_struct; | ||
327 | extern pte_t *virt_to_pte(struct mm_struct *mm, unsigned long addr); | ||
328 | |||
326 | #define update_mmu_cache(vma,address,pte) do ; while (0) | 329 | #define update_mmu_cache(vma,address,pte) do ; while (0) |
327 | 330 | ||
328 | /* Encode and de-code a swap entry */ | 331 | /* Encode and de-code a swap entry */ |