[PATCH][COMPAT] compat_uptr_t and compat_ptr 2/3 ia64

From: Stephen Rothwell (sfr@canb.auug.org.au)
Date: Tue Mar 18 2003 - 02:10:20 EST


Hi David,

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.

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

diff -ruN 2.5.65-32bit.1/include/asm-ia64/compat.h 2.5.65-32bit.2/include/asm-ia64/compat.h --- 2.5.65-32bit.1/include/asm-ia64/compat.h 2003-03-09 20:34:45.000000000 +1100 +++ 2.5.65-32bit.2/include/asm-ia64/compat.h 2003-03-12 17:56:59.000000000 +1100 @@ -107,4 +107,17 @@ #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 */ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Mar 23 2003 - 22:00:22 EST