summaryrefslogtreecommitdiffstats
path: root/arch/mips/include/asm/posix_types.h
diff options
context:
space:
mode:
authorZhi-zhou Zhang <etou.zh@gmail.com>2012-10-16 15:02:08 +0200
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2012-10-16 15:02:08 +0200
commit090854c826276b4d6361b4bdf3091ddcc977544c (patch)
tree0a5eec58a100bb3f1266379e19ee4953e5069ac0 /arch/mips/include/asm/posix_types.h
parentcb0a6a1ecc8dfe4dbdad6f9376ef78879337b118 (diff)
downloadtalos-obmc-uboot-090854c826276b4d6361b4bdf3091ddcc977544c.tar.gz
talos-obmc-uboot-090854c826276b4d6361b4bdf3091ddcc977544c.zip
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.h6
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 879aae210b..4deac5207a 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;
OpenPOWER on IntegriCloud