aboutsummaryrefslogtreecommitdiff
path: root/arch/microblaze/lib
diff options
context:
space:
mode:
authorJohn Williams <john.williams@petalogix.com>2009-08-14 12:06:46 +1000
committerMichal Simek <monstr@monstr.eu>2009-12-14 08:45:03 +0100
commit95dfbbe4700016bddd7e8915e95a97652e70f495 (patch)
treeb9be4c0bbeed4b1bb392aa3285e1c24906f27047 /arch/microblaze/lib
parentfd6ed51f4f9c01b5cea4a8be50bf49b0ae2fbd51 (diff)
downloadlinux-95dfbbe4700016bddd7e8915e95a97652e70f495.tar.gz
microblaze: Simple __copy_tofrom_user for noMMU
This is first patch which clear part of uaccess.h. uaccess.h will be clear later. Signed-off-by: John Williams <john.williams@petalogix.com> Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/lib')
-rw-r--r--arch/microblaze/lib/uaccess.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/microblaze/lib/uaccess.c b/arch/microblaze/lib/uaccess.c
index 8eb9df5a26c..a853fe089c4 100644
--- a/arch/microblaze/lib/uaccess.c
+++ b/arch/microblaze/lib/uaccess.c
@@ -39,3 +39,10 @@ long strncpy_from_user(char *dst, const char __user *src, long count)
__do_strncpy_from_user(dst, src, count, res);
return res;
}
+
+unsigned long __copy_tofrom_user(void __user *to,
+ const void __user *from, unsigned long size)
+{
+ memcpy(to, from, size);
+ return 0;
+}