1/* Copyright (C) 2009-2021 Free Software Foundation, Inc.
2
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 License as
7   published by the Free Software Foundation; either version 2.1 of the
8   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#include <sysdep.h>
20
21
22/* The following code is only used in the shared library when we
23   compile the reentrant version.  Otherwise each system call defines
24   each own version.  */
25
26#ifndef	PIC
27
28/* The syscall stubs jump here when they detect an error.  */
29
30# undef CALL_MCOUNT
31# define CALL_MCOUNT /* Don't insert the profiling call, it clobbers %d0.  */
32
33	.text
34ENTRY (__syscall_error)
35	rsubk	r3,r3,r0
36	rtsd	r15,8
37	addik	r3,r0,-1	/* delay slot.  */
38END (__syscall_error)
39#endif /* PIC.  */
40