~dannf/ubuntu/trusty/numactl/arm64

« back to all changes in this revision

Viewing changes to debian/patches/mips.patch

  • Committer: Bazaar Package Importer
  • Author(s): Ian Wienand
  • Date: 2006-11-03 10:31:24 UTC
  • mfrom: (1.2.1 upstream) (3.1.3 edgy)
  • Revision ID: james.westby@ubuntu.com-20061103103124-9dy65897wxq3g7ku
add powerpc.patch; fix FTBFS due to typo on PowerPC

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--- syscall.c~  2006-03-25 14:21:34.000000000 +0000
 
2
+++ syscall.c   2006-03-25 14:32:12.000000000 +0000
 
3
@@ -62,6 +62,41 @@
 
4
 #define __NR_set_mempolicy 261
 
5
 #define __NR_migrate_pages 280
 
6
 
 
7
+#elif defined(__mips__)
 
8
+
 
9
+#if _MIPS_SIM == _ABIO32
 
10
+/*
 
11
+ * Linux o32 style syscalls are in the range from 4000 to 4999.
 
12
+ */
 
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)
 
18
+#endif
 
19
+
 
20
+#if _MIPS_SIM == _ABI64
 
21
+/*
 
22
+ * Linux 64-bit syscalls are in the range from 5000 to 5999.
 
23
+ */
 
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)
 
29
+#endif
 
30
+
 
31
+#if _MIPS_SIM == _ABIN32
 
32
+/*
 
33
+ * Linux N32 syscalls are in the range from 6000 to 6999.
 
34
+ */
 
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)
 
40
+#endif
 
41
+
 
42
 #elif !defined(DEPS_RUN)
 
43
 #error "Add syscalls for your architecture or update kernel headers"
 
44
 #endif
 
45
 
 
46
 
 
47
-- 
 
48
Martin Michlmayr
 
49
http://www.cyrius.com/
 
50
 
 
51