1
--- syscall.c~ 2006-03-25 14:21:34.000000000 +0000
2
+++ syscall.c 2006-03-25 14:32:12.000000000 +0000
4
#define __NR_set_mempolicy 261
5
#define __NR_migrate_pages 280
7
+#elif defined(__mips__)
9
+#if _MIPS_SIM == _ABIO32
11
+ * Linux o32 style syscalls are in the range from 4000 to 4999.
13
+#define __NR_Linux 4000
14
+#define __NR_mbind (__NR_Linux + 268)
15
+#define __NR_get_mempolicy (__NR_Linux + 269)
16
+#define __NR_set_mempolicy (__NR_Linux + 270)
17
+#define __NR_migrate_pages (__NR_Linux + 287)
20
+#if _MIPS_SIM == _ABI64
22
+ * Linux 64-bit syscalls are in the range from 5000 to 5999.
24
+#define __NR_Linux 5000
25
+#define __NR_mbind (__NR_Linux + 227)
26
+#define __NR_get_mempolicy (__NR_Linux + 228)
27
+#define __NR_set_mempolicy (__NR_Linux + 229)
28
+#define __NR_migrate_pages (__NR_Linux + 246)
31
+#if _MIPS_SIM == _ABIN32
33
+ * Linux N32 syscalls are in the range from 6000 to 6999.
35
+#define __NR_Linux 6000
36
+#define __NR_mbind (__NR_Linux + 231)
37
+#define __NR_get_mempolicy (__NR_Linux + 232)
38
+#define __NR_set_mempolicy (__NR_Linux + 233)
39
+#define __NR_migrate_pages (__NR_Linux + 250)
42
#elif !defined(DEPS_RUN)
43
#error "Add syscalls for your architecture or update kernel headers"
49
http://www.cyrius.com/