From c2dad58ad1ccbd1476827a1ccb615bd002248980 Mon Sep 17 00:00:00 2001 From: Wang Qian Date: Thu, 1 Dec 2011 16:33:11 +0000 Subject: Adding n32 multiple threads condition. --- common_linux.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'common_linux.h') diff --git a/common_linux.h b/common_linux.h index 45a688d23..8d9019a0d 100644 --- a/common_linux.h +++ b/common_linux.h @@ -68,8 +68,12 @@ extern long int syscall (long int __sysno, ...); static inline int my_mbind(void *addr, unsigned long len, int mode, unsigned long *nodemask, unsigned long maxnode, unsigned flags) { -#if defined (LOONGSON3B) +#if defined (LOONGSON3B) +#if defined (__64BIT__) return syscall(SYS_mbind, addr, len, mode, nodemask, maxnode, flags); +#else + return 0; //NULL Implementation on Loongson 3B 32bit. +#endif #else //Fixed randomly SEGFAULT when nodemask==NULL with above Linux 2.6.34 unsigned long null_nodemask=0; -- cgit v1.2.3