• 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/libaio-0.3.109-arches.patch
Thomas PetazzoniThomas Petazzoni committed 3ae6d619a4505 Apr 2010
Raw file
Source viewDiff to previous
xxxxxxxxxx
+#define io_syscall5(type,fname,sname,type1,arg1,type2,arg2,type3,arg3,type4,arg4,type5,arg5) \
 
1
Patch borrowed from OpenEmbedded, available at
2
recipes/libaio/libaio-0.3.106/00_arches.patch in their source
3
tree. The patch has been adapted to remove the ARM-related
4
definitions, since they have been merged in later versions of libaio.
5
​
6
The patch adds various architecture specific definitions (syscall
7
number and macros) for m68k, MIPS, PA/RISC and Sparc. Amongst these,
8
Buildroot mostly only cares about MIPS, but it was just easier to take
9
the whole OpenEmbedded patch.
10
​
11
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
12
---
13
 src/libaio.h         |   24 +++++
14
 src/syscall-m68k.h   |   78 +++++++++++++++++
15
 src/syscall-mips.h   |  223 +++++++++++++++++++++++++++++++++++++++++++++++++++
16
 src/syscall-parisc.h |  146 +++++++++++++++++++++++++++++++++
17
 src/syscall-sparc.h  |  130 +++++++++++++++++++++++++++++
18
 src/syscall.h        |    8 +
19
 7 files changed, 725 insertions(+)
20
​
21
Index: libaio-0.3.109/src/libaio.h
22
===================================================================
23
--- libaio-0.3.109.orig/src/libaio.h
24
+++ libaio-0.3.109/src/libaio.h
25
@@ -83,6 +83,30 @@
26
 #define PADDEDptr(x, y)    x; unsigned y
27
 #define PADDEDul(x, y) unsigned long x; unsigned y
28
 #  endif
29
+#elif defined(__m68k__) /* big endian, 32 bits */
30
+#define PADDED(x, y)   unsigned y; x
31
+#define PADDEDptr(x, y)    unsigned y; x
32
+#define PADDEDul(x, y) unsigned y; unsigned long x
33
+#elif defined(__sparc__) /* big endian, 32 bits */
34
+#define PADDED(x, y)   unsigned y; x
35
+#define PADDEDptr(x, y)    unsigned y; x
36
+#define PADDEDul(x, y) unsigned y; unsigned long x
37
+#elif defined(__hppa__) /* big endian, 32 bits */
38
+#define PADDED(x, y)   unsigned y; x
39
+#define PADDEDptr(x, y)    unsigned y; x
40
+#define PADDEDul(x, y) unsigned y; unsigned long x
41
+#elif defined(__mips__)
42
+#  if defined (__MIPSEB__) /* big endian, 32 bits */
43
+#define PADDED(x, y)   unsigned y; x
44
+#define PADDEDptr(x, y)    unsigned y; x
45
+#define PADDEDul(x, y) unsigned y; unsigned long x
46
+#  elif defined(__MIPSEL__) /* little endian, 32 bits */
47
+#define PADDED(x, y)   x; unsigned y
48
+#define PADDEDptr(x, y)    x; unsigned y
49
+#define PADDEDul(x, y) unsigned long x; unsigned y
50
+#  else
51
+#    error "neither mipseb nor mipsel?"
52
+#  endif
53
 #else
54
 #error endian?
55
 #endif
56
Index: libaio-0.3.109/src/syscall-m68k.h
57
===================================================================
58
--- /dev/null
59
+++ libaio-0.3.109/src/syscall-m68k.h
60
@@ -0,0 +1,78 @@
61
+#define __NR_io_setup      241
62
+#define __NR_io_destroy        242
63
+#define __NR_io_getevents  243
  • 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.