X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fasm-powerpc%2Fcompat.h;h=64ab1ddbdf85c5d2cba8ca73750b873b43040a4d;hb=f194d132e4971111f85c18c96067acffb13cee6d;hp=accb80c9a339c2b2b2ee38de36c3fec1a76ab551;hpb=3995f4c5327595b51482bdac8c189736262eb6e0;p=linux-2.6 diff --git a/include/asm-powerpc/compat.h b/include/asm-powerpc/compat.h index accb80c9a3..64ab1ddbdf 100644 --- a/include/asm-powerpc/compat.h +++ b/include/asm-powerpc/compat.h @@ -33,8 +33,10 @@ typedef s32 compat_timer_t; typedef s32 compat_int_t; typedef s32 compat_long_t; +typedef s64 compat_s64; typedef u32 compat_uint_t; typedef u32 compat_ulong_t; +typedef u64 compat_u64; struct compat_timespec { compat_time_t tv_sec; @@ -126,6 +128,11 @@ static inline void __user *compat_ptr(compat_uptr_t 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) { struct pt_regs *regs = current->thread.regs;