Messages in this thread Patch in this message | | | Date | Tue, 18 Mar 2003 18:11:59 +1100 | From | Stephen Rothwell <> | Subject | [PATCH][COMPAT] compat_uptr_t and compat_ptr 3/3 mips64 |
| |
Hi Ralf,
Here is the mips64 part. It depends on my previous COMPAT patches. It 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-mips64/compat.h 2.5.65-32bit.2/include/asm-mips64/compat.h --- 2.5.65-32bit.1/include/asm-mips64/compat.h 2003-03-09 20:34:45.000000000 +1100 +++ 2.5.65-32bit.2/include/asm-mips64/compat.h 2003-03-12 17:57:00.000000000 +1100 @@ -103,4 +103,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_MIPS64_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/
| |