]>
git.ipfire.org Git - thirdparty/glibc.git/blob - sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
1 /* MIPS16 syscall wrappers.
2 Copyright (C) 2013-2021 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
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.
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.
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/>. */
19 #ifndef MIPS16_SYSCALL_H
20 #define MIPS16_SYSCALL_H 1
22 long long int __nomips16
__mips16_syscall0 (long int number
);
23 #define __mips16_syscall0(dummy, number) \
24 __mips16_syscall0 ((long int) (number))
26 long long int __nomips16
__mips16_syscall1 (long int a0
,
28 #define __mips16_syscall1(a0, number) \
29 __mips16_syscall1 ((long int) (a0), \
32 long long int __nomips16
__mips16_syscall2 (long int a0
, long int a1
,
34 #define __mips16_syscall2(a0, a1, number) \
35 __mips16_syscall2 ((long int) (a0), (long int) (a1), \
38 long long int __nomips16
__mips16_syscall3 (long int a0
, long int a1
,
41 #define __mips16_syscall3(a0, a1, a2, number) \
42 __mips16_syscall3 ((long int) (a0), (long int) (a1), \
46 long long int __nomips16
__mips16_syscall4 (long int a0
, long int a1
,
47 long int a2
, long int a3
,
49 #define __mips16_syscall4(a0, a1, a2, a3, number) \
50 __mips16_syscall4 ((long int) (a0), (long int) (a1), \
51 (long int) (a2), (long int) (a3), \
54 /* The remaining ones use regular MIPS wrappers. */
56 #define __mips16_syscall5(a0, a1, a2, a3, a4, number) \
57 __mips_syscall5 ((long int) (a0), (long int) (a1), \
58 (long int) (a2), (long int) (a3), \
62 #define __mips16_syscall6(a0, a1, a2, a3, a4, a5, number) \
63 __mips_syscall6 ((long int) (a0), (long int) (a1), \
64 (long int) (a2), (long int) (a3), \
65 (long int) (a4), (long int) (a5), \
68 #define __mips16_syscall7(a0, a1, a2, a3, a4, a5, a6, number) \
69 __mips_syscall7 ((long int) (a0), (long int) (a1), \
70 (long int) (a2), (long int) (a3), \
71 (long int) (a4), (long int) (a5), \