]> git.hungrycats.org Git - linux/commitdiff
[PATCH] ia64: compat_uptr_t and compat_ptr
authorStephen Rothwell <sfr@canb.auug.org.au>
Tue, 8 Apr 2003 07:43:30 +0000 (00:43 -0700)
committerDavid Mosberger <davidm@tiger.hpl.hp.com>
Tue, 8 Apr 2003 07:43:30 +0000 (00:43 -0700)
Here is the ia64 part of the patch.  It depends on my previous COMPAT
patches.  This is safe to apply even before Linus applies the generic
part.

include/asm-ia64/compat.h

index 678c481a449c67c5ca6e7c6a77d1a98606fa6119..33f6450ed38c2cc1245eae7bb5adb35c49067a22 100644 (file)
@@ -107,4 +107,17 @@ typedef u32                compat_sigset_word;
 #define COMPAT_OFF_T_MAX       0x7fffffff
 #define COMPAT_LOFF_T_MAX      0x7fffffffffffffffL
 
+/*
+ * A pointer passed in from user mode. This should not
+ * be used for syscall parameters, just declare them
+ * as pointers because the syscall entry code will have
+ * appropriately comverted them already.
+ */
+typedef        u32             compat_uptr_t;
+
+static inline void *compat_ptr(compat_ptr_t uptr)
+{
+       return (void *)uptr;
+}
+
 #endif /* _ASM_IA64_COMPAT_H */