|
Packit Service |
82fcde |
/* Copyright (C) 2010-2018 Free Software Foundation, Inc.
|
|
Packit Service |
82fcde |
This file is part of the GNU C Library.
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
The GNU C Library is free software; you can redistribute it and/or
|
|
Packit Service |
82fcde |
modify it under the terms of the GNU Lesser General Public
|
|
Packit Service |
82fcde |
License as published by the Free Software Foundation; either
|
|
Packit Service |
82fcde |
version 2.1 of the License, or (at your option) any later version.
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
The GNU C Library is distributed in the hope that it will be useful,
|
|
Packit Service |
82fcde |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
82fcde |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
82fcde |
Lesser General Public License for more details.
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
You should have received a copy of the GNU Lesser General Public
|
|
Packit Service |
82fcde |
License along with the GNU C Library. If not, see
|
|
Packit Service |
82fcde |
<http://www.gnu.org/licenses/>. */
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
/* When this file is built for inclusion in nscd, _FORTIFY_SOURCE is
|
|
Packit Service |
82fcde |
defined but -O is not used, resulting in a warning from features.h. */
|
|
Packit Service |
82fcde |
#undef _FORTIFY_SOURCE
|
|
Packit Service |
82fcde |
#include <sysdep.h>
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
/* Out-of-line syscall stub. We expect the system call number in ip
|
|
Packit Service |
82fcde |
and return the raw result in r0. No registers are clobbered.
|
|
Packit Service |
82fcde |
We could avoid using the stack for this, but the goal is accurate
|
|
Packit Service |
82fcde |
unwind information - and while there is a reserved prefix in the
|
|
Packit Service |
82fcde |
ARM unwind tables for register to register moves, the actual opcodes
|
|
Packit Service |
82fcde |
are not defined. */
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#if defined(__thumb__)
|
|
Packit Service |
82fcde |
.thumb
|
|
Packit Service |
82fcde |
.syntax unified
|
|
Packit Service |
82fcde |
.hidden __libc_do_syscall
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#undef CALL_MCOUNT
|
|
Packit Service |
82fcde |
#define CALL_MCOUNT
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
ENTRY (__libc_do_syscall)
|
|
Packit Service |
82fcde |
.fnstart
|
|
Packit Service |
82fcde |
push {r7, lr}
|
|
Packit Service |
82fcde |
.save {r7, lr}
|
|
Packit Service |
82fcde |
cfi_adjust_cfa_offset (8)
|
|
Packit Service |
82fcde |
cfi_rel_offset (r7, 0)
|
|
Packit Service |
82fcde |
cfi_rel_offset (lr, 4)
|
|
Packit Service |
82fcde |
mov r7, ip
|
|
Packit Service |
82fcde |
swi 0x0
|
|
Packit Service |
82fcde |
pop {r7, pc}
|
|
Packit Service |
82fcde |
.fnend
|
|
Packit Service |
82fcde |
END (__libc_do_syscall)
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#endif /* __thumb__ */
|