__restore_rt.S revision 4906e5653c57d49f94940f28556009a88c42a583
14906e5653c57d49f94940f28556009a88c42a583Elliott Hughes/*
24906e5653c57d49f94940f28556009a88c42a583Elliott Hughes * Copyright (C) 2013 The Android Open Source Project
34906e5653c57d49f94940f28556009a88c42a583Elliott Hughes * All rights reserved.
44906e5653c57d49f94940f28556009a88c42a583Elliott Hughes *
54906e5653c57d49f94940f28556009a88c42a583Elliott Hughes * Redistribution and use in source and binary forms, with or without
64906e5653c57d49f94940f28556009a88c42a583Elliott Hughes * modification, are permitted provided that the following conditions
74906e5653c57d49f94940f28556009a88c42a583Elliott Hughes * are met:
84906e5653c57d49f94940f28556009a88c42a583Elliott Hughes *  * Redistributions of source code must retain the above copyright
94906e5653c57d49f94940f28556009a88c42a583Elliott Hughes *    notice, this list of conditions and the following disclaimer.
104906e5653c57d49f94940f28556009a88c42a583Elliott Hughes *  * Redistributions in binary form must reproduce the above copyright
114906e5653c57d49f94940f28556009a88c42a583Elliott Hughes *    notice, this list of conditions and the following disclaimer in
124906e5653c57d49f94940f28556009a88c42a583Elliott Hughes *    the documentation and/or other materials provided with the
134906e5653c57d49f94940f28556009a88c42a583Elliott Hughes *    distribution.
144906e5653c57d49f94940f28556009a88c42a583Elliott Hughes *
154906e5653c57d49f94940f28556009a88c42a583Elliott Hughes * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
164906e5653c57d49f94940f28556009a88c42a583Elliott Hughes * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
174906e5653c57d49f94940f28556009a88c42a583Elliott Hughes * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
184906e5653c57d49f94940f28556009a88c42a583Elliott Hughes * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
194906e5653c57d49f94940f28556009a88c42a583Elliott Hughes * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
204906e5653c57d49f94940f28556009a88c42a583Elliott Hughes * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
214906e5653c57d49f94940f28556009a88c42a583Elliott Hughes * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
224906e5653c57d49f94940f28556009a88c42a583Elliott Hughes * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
234906e5653c57d49f94940f28556009a88c42a583Elliott Hughes * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
244906e5653c57d49f94940f28556009a88c42a583Elliott Hughes * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
254906e5653c57d49f94940f28556009a88c42a583Elliott Hughes * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
264906e5653c57d49f94940f28556009a88c42a583Elliott Hughes * SUCH DAMAGE.
274906e5653c57d49f94940f28556009a88c42a583Elliott Hughes */
284906e5653c57d49f94940f28556009a88c42a583Elliott Hughes
294906e5653c57d49f94940f28556009a88c42a583Elliott Hughes#include <asm/unistd.h>
304906e5653c57d49f94940f28556009a88c42a583Elliott Hughes#include <machine/asm.h>
314906e5653c57d49f94940f28556009a88c42a583Elliott Hughes
324906e5653c57d49f94940f28556009a88c42a583Elliott HughesENTRY(__rt_sigreturn)
334906e5653c57d49f94940f28556009a88c42a583Elliott Hughes  .hidden _C_LABEL(__rt_sigreturn) // TODO: add an ENTRY_PRIVATE macro for x86_64.
344906e5653c57d49f94940f28556009a88c42a583Elliott Hughes  movl $__NR_rt_sigreturn, %eax
354906e5653c57d49f94940f28556009a88c42a583Elliott Hughes  syscall
364906e5653c57d49f94940f28556009a88c42a583Elliott HughesEND(__rt_sigreturn)
37