diff options
author | Wang Qian <wangqian10@iscas.ac.cn> | 2011-12-01 16:33:11 +0000 |
---|---|---|
committer | Wang Qian <wangqian10@iscas.ac.cn> | 2011-12-01 16:33:11 +0000 |
commit | c2dad58ad1ccbd1476827a1ccb615bd002248980 (patch) | |
tree | 06f9aad2bd947275cc9338d35d992b03bd7150de /common_linux.h | |
parent | 66904fc4e8c43d05231487ab0e063417141be4f6 (diff) | |
download | openblas-c2dad58ad1ccbd1476827a1ccb615bd002248980.tar.gz openblas-c2dad58ad1ccbd1476827a1ccb615bd002248980.tar.bz2 openblas-c2dad58ad1ccbd1476827a1ccb615bd002248980.zip |
Adding n32 multiple threads condition.
Diffstat (limited to 'common_linux.h')
-rw-r--r-- | common_linux.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/common_linux.h b/common_linux.h index 45a688d23..8d9019a0d 100644 --- a/common_linux.h +++ b/common_linux.h @@ -68,9 +68,13 @@ 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; return syscall(SYS_mbind, addr, len, mode, &null_nodemask, maxnode, flags); |