]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
Update copyright dates with scripts/update-copyrights
[thirdparty/glibc.git] / sysdeps / unix / sysv / linux / mips / mips32 / mips16 / mips16-syscall.h
CommitLineData
43301bd3 1/* MIPS16 syscall wrappers.
2b778ceb 2 Copyright (C) 2013-2021 Free Software Foundation, Inc.
43301bd3
MR
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
5a82c748 17 <https://www.gnu.org/licenses/>. */
43301bd3
MR
18
19#ifndef MIPS16_SYSCALL_H
20#define MIPS16_SYSCALL_H 1
21
d3fbb18a 22long long int __nomips16 __mips16_syscall0 (long int number);
43301bd3 23#define __mips16_syscall0(dummy, number) \
d3fbb18a 24 __mips16_syscall0 ((long int) (number))
43301bd3 25
d3fbb18a
WX
26long long int __nomips16 __mips16_syscall1 (long int a0,
27 long int number);
43301bd3 28#define __mips16_syscall1(a0, number) \
d3fbb18a
WX
29 __mips16_syscall1 ((long int) (a0), \
30 (long int) (number))
43301bd3 31
d3fbb18a
WX
32long long int __nomips16 __mips16_syscall2 (long int a0, long int a1,
33 long int number);
43301bd3 34#define __mips16_syscall2(a0, a1, number) \
d3fbb18a
WX
35 __mips16_syscall2 ((long int) (a0), (long int) (a1), \
36 (long int) (number))
43301bd3 37
d3fbb18a
WX
38long long int __nomips16 __mips16_syscall3 (long int a0, long int a1,
39 long int a2,
40 long int number);
43301bd3 41#define __mips16_syscall3(a0, a1, a2, number) \
d3fbb18a
WX
42 __mips16_syscall3 ((long int) (a0), (long int) (a1), \
43 (long int) (a2), \
44 (long int) (number))
43301bd3 45
d3fbb18a
WX
46long long int __nomips16 __mips16_syscall4 (long int a0, long int a1,
47 long int a2, long int a3,
48 long int number);
43301bd3 49#define __mips16_syscall4(a0, a1, a2, a3, number) \
d3fbb18a
WX
50 __mips16_syscall4 ((long int) (a0), (long int) (a1), \
51 (long int) (a2), (long int) (a3), \
52 (long int) (number))
43301bd3 53
319cbbf6
AZ
54/* The remaining ones use regular MIPS wrappers. */
55
43301bd3 56#define __mips16_syscall5(a0, a1, a2, a3, a4, number) \
d3fbb18a
WX
57 __mips_syscall5 ((long int) (a0), (long int) (a1), \
58 (long int) (a2), (long int) (a3), \
59 (long int) (a4), \
60 (long int) (number))
43301bd3 61
43301bd3 62#define __mips16_syscall6(a0, a1, a2, a3, a4, a5, number) \
d3fbb18a
WX
63 __mips_syscall6 ((long int) (a0), (long int) (a1), \
64 (long int) (a2), (long int) (a3), \
65 (long int) (a4), (long int) (a5), \
66 (long int) (number))
43301bd3 67
43301bd3 68#define __mips16_syscall7(a0, a1, a2, a3, a4, a5, a6, number) \
d3fbb18a
WX
69 __mips_syscall7 ((long int) (a0), (long int) (a1), \
70 (long int) (a2), (long int) (a3), \
71 (long int) (a4), (long int) (a5), \
72 (long int) (a6), \
73 (long int) (number))
43301bd3
MR
74
75#endif