2014-01-01 11:03:15 +00:00
|
|
|
/* Copyright (C) 1995-2014 Free Software Foundation, Inc.
|
1997-06-12 21:24:27 +00:00
|
|
|
This file is part of the GNU C Library.
|
|
|
|
|
|
|
|
The GNU C Library is free software; you can redistribute it and/or
|
2001-07-06 04:56:23 +00:00
|
|
|
modify it under the terms of the GNU Lesser General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
version 2.1 of the License, or (at your option) any later version.
|
1997-06-12 21:24:27 +00:00
|
|
|
|
|
|
|
The GNU C Library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
2001-07-06 04:56:23 +00:00
|
|
|
Lesser General Public License for more details.
|
1997-06-12 21:24:27 +00:00
|
|
|
|
2001-07-06 04:56:23 +00:00
|
|
|
You should have received a copy of the GNU Lesser General Public
|
2012-03-09 23:56:38 +00:00
|
|
|
License along with the GNU C Library. If not, see
|
|
|
|
<http://www.gnu.org/licenses/>. */
|
1997-06-12 21:24:27 +00:00
|
|
|
|
|
|
|
#include <sysdep.h>
|
|
|
|
|
|
|
|
.text
|
|
|
|
|
|
|
|
/* The syscall stubs jump here when they detect an error.
|
1998-04-03 12:06:51 +00:00
|
|
|
The code for Linux is almost identical to the canonical Unix
|
|
|
|
code, except that the error number in R0 is negated. */
|
1997-06-12 21:24:27 +00:00
|
|
|
|
|
|
|
#undef CALL_MCOUNT
|
1998-04-03 12:06:51 +00:00
|
|
|
#define CALL_MCOUNT /* Don't insert the profiling call, it clobbers R0. */
|
1997-06-12 21:24:27 +00:00
|
|
|
|
|
|
|
ENTRY (__syscall_error)
|
1998-04-03 12:06:51 +00:00
|
|
|
rsb r0, r0, $0
|
1997-06-12 21:24:27 +00:00
|
|
|
|
|
|
|
#define __syscall_error __syscall_error_1
|
2006-02-28 19:26:36 +00:00
|
|
|
#include <sysdeps/unix/arm/sysdep.S>
|