]>
Commit | Line | Data |
---|---|---|
2b778ceb | 1 | /* Copyright (C) 1991-2021 Free Software Foundation, Inc. |
4cca6b86 UD |
2 | This file is part of the GNU C Library. |
3 | ||
4 | The GNU C Library is free software; you can redistribute it and/or | |
41bdb6e2 AJ |
5 | modify it under the terms of the GNU Lesser General Public |
6 | License as published by the Free Software Foundation; either | |
7 | version 2.1 of the License, or (at your option) any later version. | |
4cca6b86 UD |
8 | |
9 | The GNU C Library is distributed in the hope that it will be useful, | |
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
41bdb6e2 | 12 | Lesser General Public License for more details. |
4cca6b86 | 13 | |
41bdb6e2 | 14 | You should have received a copy of the GNU Lesser General Public |
59ba27a6 | 15 | License along with the GNU C Library; if not, see |
5a82c748 | 16 | <https://www.gnu.org/licenses/>. */ |
4cca6b86 UD |
17 | |
18 | #include <sysdep.h> | |
19 | ||
4cca6b86 | 20 | ENTRY (syscall) |
acf47bbe UD |
21 | mr r0,r3 |
22 | mr r3,r4 | |
23 | mr r4,r5 | |
24 | mr r5,r6 | |
25 | mr r6,r7 | |
26 | mr r7,r8 | |
b398ae3c | 27 | mr r8,r9 |
68ab82f5 MC |
28 | #if !IS_IN(rtld) && (defined(__PPC64__) || defined(__powerpc64__)) |
29 | CHECK_SCV_SUPPORT r9 0f | |
30 | DO_CALL_SCV | |
31 | RET_SCV | |
32 | b 1f | |
33 | #endif | |
34 | 0: DO_CALL_SC | |
35 | RET_SC | |
36 | 1: TAIL_CALL_SYSCALL_ERROR | |
4cca6b86 | 37 | PSEUDO_END (syscall) |