]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-ia64/compat.h
[POWERPC] Fix a couple of copyright symbols
[linux-2.6-omap-h63xx.git] / include / asm-ia64 / compat.h
index aaf11f4e916997643d60c7d45fb4718ac5092363..0f6e5264ab8fcccefa2da67faa794fec3d79d206 100644 (file)
@@ -31,8 +31,10 @@ typedef s32          compat_timer_t;
 
 typedef s32            compat_int_t;
 typedef s32            compat_long_t;
+typedef s64 __attribute__((aligned(4))) compat_s64;
 typedef u32            compat_uint_t;
 typedef u32            compat_ulong_t;
+typedef u64 __attribute__((aligned(4))) compat_u64;
 
 struct compat_timespec {
        compat_time_t   tv_sec;
@@ -189,10 +191,16 @@ 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 = ia64_task_regs(current);
+       struct pt_regs *regs = task_pt_regs(current);
        return (void __user *) (((regs->r12 & 0xffffffff) & -16) - len);
 }