aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-um/pgtable.h
diff options
context:
space:
mode:
authorJeff Dike <jdike@addtoit.com>2008-02-05 01:30:55 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-05 12:44:28 -0500
commitca77b555c0aafa3070fbb67592abaaa1b8d31913 (patch)
treefb0b42c68879599b65dc897153923ffadca408ab /include/asm-um/pgtable.h
parent655e4ed0c521dcfdbf1c5a79da971560e6733527 (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/asm-um/pgtable.h')
-rw-r--r--include/asm-um/pgtable.h3
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
326struct mm_struct;
327extern 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 */