X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-sparc%2Felf.h;h=4a71d7c1eacef14c39e669b1f37f7c0ad252300e;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=2b2a5195004fb4f5e7501cb417c08ebf1aa5160d;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/include/asm-sparc/elf.h b/include/asm-sparc/elf.h index 2b2a51950..4a71d7c1e 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; \ @@ -143,7 +143,7 @@ typedef struct { the loader. We need to make sure that it is out of the way of the program that it will "exec", and that there is sufficient room for the brk. */ -#define ELF_ET_DYN_BASE (0x08000000) +#define ELF_ET_DYN_BASE (TASK_UNMAPPED_BASE) /* This yields a mask that user programs can use to figure out what instruction set this cpu supports. This can NOT be done in userspace