summaryrefslogtreecommitdiffstats
path: root/include/asm-frv/cacheflush.h
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@pobox.com>2006-02-17 22:20:30 +0100
committerJeff Garzik <jgarzik@pobox.com>2006-02-17 22:20:30 +0100
commitb04a92e1601eb6df3a3b6599e7fb7ee021eef2cb (patch)
treef190980d5bffae81a67c0cea0d913ed2444ceb0c /include/asm-frv/cacheflush.h
parentMerge branch 'viro' (diff)
parent[PATCH] bonding: fix a locking bug in bond_release (diff)
downloadlinux-b04a92e1601eb6df3a3b6599e7fb7ee021eef2cb.tar.xz
linux-b04a92e1601eb6df3a3b6599e7fb7ee021eef2cb.zip
Merge branch 'upstream-fixes'
Diffstat (limited to 'include/asm-frv/cacheflush.h')
-rw-r--r--include/asm-frv/cacheflush.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/asm-frv/cacheflush.h b/include/asm-frv/cacheflush.h
index 3007deccb490..eaa5826bc1c8 100644
--- a/include/asm-frv/cacheflush.h
+++ b/include/asm-frv/cacheflush.h
@@ -87,5 +87,17 @@ static inline void flush_icache_page(struct vm_area_struct *vma, struct page *pa
flush_icache_user_range(vma, page, page_to_phys(page), PAGE_SIZE);
}
+/*
+ * permit ptrace to access another process's address space through the icache
+ * and the dcache
+ */
+#define copy_to_user_page(vma, page, vaddr, dst, src, len) \
+do { \
+ memcpy((dst), (src), (len)); \
+ flush_icache_user_range((vma), (page), (vaddr), (len)); \
+} while(0)
+
+#define copy_from_user_page(vma, page, vaddr, dst, src, len) \
+ memcpy((dst), (src), (len))
#endif /* _ASM_CACHEFLUSH_H */