diff options
author | Zhi-zhou Zhang <etou.zh@gmail.com> | 2012-10-16 13:02:08 (GMT) |
---|---|---|
committer | Daniel Schwierzeck <daniel.schwierzeck@gmail.com> | 2012-10-16 13:02:08 (GMT) |
commit | 090854c826276b4d6361b4bdf3091ddcc977544c (patch) | |
tree | 0a5eec58a100bb3f1266379e19ee4953e5069ac0 /arch/mips/include/asm/posix_types.h | |
parent | cb0a6a1ecc8dfe4dbdad6f9376ef78879337b118 (diff) | |
download | u-boot-090854c826276b4d6361b4bdf3091ddcc977544c.tar.xz |
MIPS: add support for 64 bit addressing
Prepare for upcoming mips64 support. This patch add mips64 address
support.
Signed-off-by: Zhizhou Zhang <etou.zh@gmail.com>
[daniel.schwierzeck@gmail.com: prefer _MIPS_SZLONG in posix_types.h to fix some warnings]
Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Diffstat (limited to 'arch/mips/include/asm/posix_types.h')
-rw-r--r-- | arch/mips/include/asm/posix_types.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/mips/include/asm/posix_types.h b/arch/mips/include/asm/posix_types.h index 879aae2..4deac52 100644 --- a/arch/mips/include/asm/posix_types.h +++ b/arch/mips/include/asm/posix_types.h @@ -24,9 +24,15 @@ typedef int __kernel_pid_t; typedef int __kernel_ipc_pid_t; typedef int __kernel_uid_t; typedef int __kernel_gid_t; +#if _MIPS_SZLONG != 64 typedef unsigned int __kernel_size_t; typedef int __kernel_ssize_t; typedef int __kernel_ptrdiff_t; +#else +typedef unsigned long __kernel_size_t; +typedef long __kernel_ssize_t; +typedef long __kernel_ptrdiff_t; +#endif typedef long __kernel_time_t; typedef long __kernel_suseconds_t; typedef long __kernel_clock_t; |