xref: /freebsd/lib/libsys/powerpc/_umtx_op_err.S (revision ef9871c6205c158b16ee23702d2b8c043debc51a)
1*ef9871c6SBrooks Davis/*-
2*ef9871c6SBrooks Davis * SPDX-License-Identifier: BSD-2-Clause
3*ef9871c6SBrooks Davis *
4*ef9871c6SBrooks Davis * Copyright (c) 2019 Brandon Bergren <bdragon@FreeBSD.org>
5*ef9871c6SBrooks Davis *
6*ef9871c6SBrooks Davis * Redistribution and use in source and binary forms, with or without
7*ef9871c6SBrooks Davis * modification, are permitted provided that the following conditions
8*ef9871c6SBrooks Davis * are met:
9*ef9871c6SBrooks Davis * 1. Redistributions of source code must retain the above copyright
10*ef9871c6SBrooks Davis *    notice, this list of conditions and the following disclaimer.
11*ef9871c6SBrooks Davis * 2. Redistributions in binary form must reproduce the above copyright
12*ef9871c6SBrooks Davis *    notice, this list of conditions and the following disclaimer in the
13*ef9871c6SBrooks Davis *    documentation and/or other materials provided with the distribution.
14*ef9871c6SBrooks Davis *
15*ef9871c6SBrooks Davis * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16*ef9871c6SBrooks Davis * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17*ef9871c6SBrooks Davis * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18*ef9871c6SBrooks Davis * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19*ef9871c6SBrooks Davis * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20*ef9871c6SBrooks Davis * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21*ef9871c6SBrooks Davis * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22*ef9871c6SBrooks Davis * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23*ef9871c6SBrooks Davis * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24*ef9871c6SBrooks Davis * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25*ef9871c6SBrooks Davis * SUCH DAMAGE.
26*ef9871c6SBrooks Davis */
27*ef9871c6SBrooks Davis
28*ef9871c6SBrooks Davis#include <machine/asm.h>
29*ef9871c6SBrooks Davis#include <sys/syscall.h>
30*ef9871c6SBrooks Davis
31*ef9871c6SBrooks Davis	.text
32*ef9871c6SBrooks Davis	.align 2
33*ef9871c6SBrooks DavisENTRY(_umtx_op_err)
34*ef9871c6SBrooks Davis	li	%r0, SYS__umtx_op
35*ef9871c6SBrooks Davis	sc
36*ef9871c6SBrooks Davis	blr
37*ef9871c6SBrooks DavisEND(_umtx_op_err)
38*ef9871c6SBrooks Davis
39*ef9871c6SBrooks Davis	.section .note.GNU-stack,"",%progbits
40