summaryrefslogtreecommitdiff
path: root/linux/dev/glue
diff options
context:
space:
mode:
Diffstat (limited to 'linux/dev/glue')
-rw-r--r--linux/dev/glue/kmem.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/linux/dev/glue/kmem.c b/linux/dev/glue/kmem.c
index 2832171..ff052ff 100644
--- a/linux/dev/glue/kmem.c
+++ b/linux/dev/glue/kmem.c
@@ -560,6 +560,12 @@ vfree (void *addr)
vmalloc_list_remove (p);
}
+unsigned long
+vmtophys (void *addr)
+{
+ return kvtophys((vm_offset_t) addr);
+}
+
/* XXX: Quick hacking. */
/* Remap physical address into virtual address. */
void *