Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Viro <viro@parcelfarce.linux.theplanet.co.uk>2005-02-10 03:10:08 -0800
committerDavid S. Miller <davem@nuts.davemloft.net>2005-02-10 03:10:08 -0800
commit121de9a16f28df9768e84b72f289cfe259c94dd6 (patch)
tree488b3f9947da9cc9e1c49bbd666a061961b60a96
parenta9425fb458a9c95aa76f6a3d6f29b59685482283 (diff)
[SPARC]: __user annotations in ELF_CORE_COPY_REGS
Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--include/asm-sparc/elf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-sparc/elf.h b/include/asm-sparc/elf.h
index d17864207d07..4a71d7c1eace 100644
--- a/include/asm-sparc/elf.h
+++ b/include/asm-sparc/elf.h
@@ -88,11 +88,11 @@ typedef elf_greg_t elf_gregset_t[ELF_NGREG];
#define ELF_CORE_COPY_REGS(__elf_regs, __pt_regs) \
do { unsigned long *dest = &(__elf_regs[0]); \
struct pt_regs *src = (__pt_regs); \
- unsigned long *sp; \
+ unsigned long __user *sp; \
memcpy(&dest[0], &src->u_regs[0], \
sizeof(unsigned long) * 16); \
/* Don't try this at home kids... */ \
- sp = (unsigned long *) src->u_regs[14]; \
+ sp = (unsigned long __user *) src->u_regs[14]; \
copy_from_user(&dest[16], sp, \
sizeof(unsigned long) * 16); \
dest[32] = src->psr; \