[PATCH] parisc: add ptr_to_compat()
Add ptr_to_compat() to parisc - needed by the new robust futex code. Signed-off-by: Ingo Molnar <mingo@elte.hu> Cc: Kyle McMartin <kyle@mcmartin.ca> Cc: Grant Grundler <iod00d@hp.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
f267fa9f5b
commit
213b63b76a
1 changed files with 5 additions and 0 deletions
|
@ -138,6 +138,11 @@ static inline void __user *compat_ptr(compat_uptr_t uptr)
|
||||||
return (void __user *)(unsigned long)uptr;
|
return (void __user *)(unsigned long)uptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline compat_uptr_t ptr_to_compat(void __user *uptr)
|
||||||
|
{
|
||||||
|
return (u32)(unsigned long)uptr;
|
||||||
|
}
|
||||||
|
|
||||||
static __inline__ void __user *compat_alloc_user_space(long len)
|
static __inline__ void __user *compat_alloc_user_space(long len)
|
||||||
{
|
{
|
||||||
struct pt_regs *regs = ¤t->thread.regs;
|
struct pt_regs *regs = ¤t->thread.regs;
|
||||||
|
|
Loading…
Reference in a new issue