]> git.ipfire.org Git - thirdparty/glibc.git/blob - sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
Prefer https to http for gnu.org and fsf.org URLs
[thirdparty/glibc.git] / sysdeps / unix / sysv / linux / mips / mips32 / mips16 / mips16-syscall.h
1 /* MIPS16 syscall wrappers.
2 Copyright (C) 2013-2019 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <https://www.gnu.org/licenses/>. */
18
19 #ifndef MIPS16_SYSCALL_H
20 #define MIPS16_SYSCALL_H 1
21
22 long long __nomips16 __mips16_syscall0 (long number);
23 #define __mips16_syscall0(dummy, number) \
24 __mips16_syscall0 ((long) (number))
25
26 long long __nomips16 __mips16_syscall1 (long a0,
27 long number);
28 #define __mips16_syscall1(a0, number) \
29 __mips16_syscall1 ((long) (a0), \
30 (long) (number))
31
32 long long __nomips16 __mips16_syscall2 (long a0, long a1,
33 long number);
34 #define __mips16_syscall2(a0, a1, number) \
35 __mips16_syscall2 ((long) (a0), (long) (a1), \
36 (long) (number))
37
38 long long __nomips16 __mips16_syscall3 (long a0, long a1, long a2,
39 long number);
40 #define __mips16_syscall3(a0, a1, a2, number) \
41 __mips16_syscall3 ((long) (a0), (long) (a1), (long) (a2), \
42 (long) (number))
43
44 long long __nomips16 __mips16_syscall4 (long a0, long a1, long a2, long a3,
45 long number);
46 #define __mips16_syscall4(a0, a1, a2, a3, number) \
47 __mips16_syscall4 ((long) (a0), (long) (a1), (long) (a2), \
48 (long) (a3), \
49 (long) (number))
50
51 /* The remaining ones use regular MIPS wrappers. */
52
53 #define __mips16_syscall5(a0, a1, a2, a3, a4, number) \
54 __mips_syscall5 ((long) (a0), (long) (a1), (long) (a2), \
55 (long) (a3), (long) (a4), \
56 (long) (number))
57
58 #define __mips16_syscall6(a0, a1, a2, a3, a4, a5, number) \
59 __mips_syscall6 ((long) (a0), (long) (a1), (long) (a2), \
60 (long) (a3), (long) (a4), (long) (a5), \
61 (long) (number))
62
63 #define __mips16_syscall7(a0, a1, a2, a3, a4, a5, a6, number) \
64 __mips_syscall7 ((long) (a0), (long) (a1), (long) (a2), \
65 (long) (a3), (long) (a4), (long) (a5), \
66 (long) (a6), \
67 (long) (number))
68
69 #endif