diff options
author | John Williams <john.williams@petalogix.com> | 2009-08-13 22:06:46 -0400 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2009-12-14 02:45:03 -0500 |
commit | 95dfbbe4700016bddd7e8915e95a97652e70f495 (patch) | |
tree | b9be4c0bbeed4b1bb392aa3285e1c24906f27047 /arch/microblaze/lib | |
parent | fd6ed51f4f9c01b5cea4a8be50bf49b0ae2fbd51 (diff) |
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.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/microblaze/lib/uaccess.c b/arch/microblaze/lib/uaccess.c index 8eb9df5a26c9..a853fe089c44 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) | |||
39 | __do_strncpy_from_user(dst, src, count, res); | 39 | __do_strncpy_from_user(dst, src, count, res); |
40 | return res; | 40 | return res; |
41 | } | 41 | } |
42 | |||
43 | unsigned long __copy_tofrom_user(void __user *to, | ||
44 | const void __user *from, unsigned long size) | ||
45 | { | ||
46 | memcpy(to, from, size); | ||
47 | return 0; | ||
48 | } | ||