1305b9efeSEd Maste/*- 24d846d26SWarner Losh * SPDX-License-Identifier: BSD-2-Clause 3305b9efeSEd Maste * 4305b9efeSEd Maste * Copyright (C) 2018 Turing Robotic Industries Inc. 5eb43a03aSAndrew Turner * Copyright (C) 2020 Andrew Turner <andrew@FreeBSD.org> 6c56480a8SDmitry Chagin * Copyright (C) 2022 Dmitry Chagin <dchagin@FreeBSD.org> 7305b9efeSEd Maste * 8305b9efeSEd Maste * Redistribution and use in source and binary forms, with or without 9305b9efeSEd Maste * modification, are permitted provided that the following conditions 10305b9efeSEd Maste * are met: 11305b9efeSEd Maste * 1. Redistributions of source code must retain the above copyright 12305b9efeSEd Maste * notice, this list of conditions and the following disclaimer. 13305b9efeSEd Maste * 2. Redistributions in binary form must reproduce the above copyright 14305b9efeSEd Maste * notice, this list of conditions and the following disclaimer in the 15305b9efeSEd Maste * documentation and/or other materials provided with the distribution. 16305b9efeSEd Maste * 17305b9efeSEd Maste * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 18305b9efeSEd Maste * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19305b9efeSEd Maste * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20305b9efeSEd Maste * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 21305b9efeSEd Maste * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22305b9efeSEd Maste * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23305b9efeSEd Maste * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24305b9efeSEd Maste * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25305b9efeSEd Maste * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26305b9efeSEd Maste * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27305b9efeSEd Maste * SUCH DAMAGE. 28305b9efeSEd Maste */ 29305b9efeSEd Maste 30305b9efeSEd Maste/* 31c56480a8SDmitry Chagin * arm64 Linux VDSO signal trampoline. 32305b9efeSEd Maste */ 33305b9efeSEd Maste 34305b9efeSEd Maste#include <machine/asm.h> 35305b9efeSEd Maste 36eb43a03aSAndrew Turner#include <arm64/linux/linux_syscall.h> 37eb43a03aSAndrew Turner 38305b9efeSEd Maste .data 39305b9efeSEd Maste 40305b9efeSEd Maste .globl linux_platform 41305b9efeSEd Mastelinux_platform: 42aa462cabSEdward Tomasz Napierala .asciz "aarch64" 43305b9efeSEd Maste 44305b9efeSEd Maste .text 45305b9efeSEd Maste 46c56480a8SDmitry ChaginEENTRY(__kernel_rt_sigreturn) 47*d957343fSDmitry Chagin nop /* This is what Linux calls a "Mysterious NOP". */ 48c56480a8SDmitry Chagin 49*d957343fSDmitry Chagin .globl __user_rt_sigreturn 50*d957343fSDmitry Chagin__user_rt_sigreturn: 51c56480a8SDmitry Chagin mov x8, #LINUX_SYS_linux_rt_sigreturn 52c56480a8SDmitry Chagin svc #0 535f19e18bSDmitry ChaginEEND(__kernel_rt_sigreturn) 54