• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/libaio/0001-arches.patch
Alistair FrancisAlistair Francis committed 1ded02f0b2c18 Feb 2016
Raw file
Source viewDiff to previous
 
1
Patch borrowed from OpenEmbedded, available at
2
/meta/recipes-extended/libaio/libaio/00_arches.patch in their source
3
tree. This patch has been modified to only add the MIPS definitions.
4
​
5
The patch adds MIPS specific definitions (syscall number and macros).
6
​
7
Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
8
​
9
Index: libaio-0.3.110/src/syscall.h
10
===================================================================
11
--- libaio-0.3.110.orig/src/syscall.h
12
+++ libaio-0.3.110/src/syscall.h
13
@@ -28,6 +28,8 @@
14
 #include "syscall-sparc.h"
15
 #elif defined(__aarch64__)
16
 #include "syscall-arm64.h"
17
+#elif defined(__mips__)
18
+#include "syscall-mips.h"
19
 #else
20
 #warning "using generic syscall method"
21
 #include "syscall-generic.h"
22
Index: libaio-0.3.110/src/syscall-mips.h
23
===================================================================
24
--- /dev/null
25
+++ libaio-0.3.110/src/syscall-mips.h
26
@@ -0,0 +1,223 @@
27
+/*
28
+ * This file is subject to the terms and conditions of the GNU General Public
29
+ * License.  See the file "COPYING" in the main directory of this archive
30
+ * for more details.
31
+ *
32
+ * Copyright (C) 1995, 96, 97, 98, 99, 2000 by Ralf Baechle
33
+ * Copyright (C) 1999, 2000 Silicon Graphics, Inc.
34
+ *
35
+ * Changed system calls macros _syscall5 - _syscall7 to push args 5 to 7 onto
36
+ * the stack. Robin Farine for ACN S.A, Copyright (C) 1996 by ACN S.A
37
+ */
38
+
39
+#ifndef _MIPS_SIM_ABI32
40
+#define _MIPS_SIM_ABI32            1
41
+#define _MIPS_SIM_NABI32       2
42
+#define _MIPS_SIM_ABI64            3
43
+#endif
44
+
45
+#if _MIPS_SIM == _MIPS_SIM_ABI32
46
+
47
+/*
48
+ * Linux o32 style syscalls are in the range from 4000 to 4999.
49
+ */
50
+#define __NR_Linux         4000
51
+#define __NR_io_setup          (__NR_Linux + 241)
52
+#define __NR_io_destroy            (__NR_Linux + 242)
53
+#define __NR_io_getevents      (__NR_Linux + 243)
54
+#define __NR_io_submit         (__NR_Linux + 244)
55
+#define __NR_io_cancel         (__NR_Linux + 245)
56
+
57
+#endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
58
+
59
+#if _MIPS_SIM == _MIPS_SIM_ABI64
60
+
61
+/*
62
+ * Linux 64-bit syscalls are in the range from 5000 to 5999.
63
+ */
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.