xref: /freebsd-src/sys/contrib/openzfs/lib/libspl/include/sys/asm_linkage.h (revision 15f0b8c309dea1dcb14d3e374686576ff68ac43f)
1*15f0b8c3SMartin Matuska /*
2*15f0b8c3SMartin Matuska  * CDDL HEADER START
3*15f0b8c3SMartin Matuska  *
4*15f0b8c3SMartin Matuska  * The contents of this file are subject to the terms of the
5*15f0b8c3SMartin Matuska  * Common Development and Distribution License, Version 1.0 only
6*15f0b8c3SMartin Matuska  * (the "License").  You may not use this file except in compliance
7*15f0b8c3SMartin Matuska  * with the License.
8*15f0b8c3SMartin Matuska  *
9*15f0b8c3SMartin Matuska  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*15f0b8c3SMartin Matuska  * or https://opensource.org/licenses/CDDL-1.0.
11*15f0b8c3SMartin Matuska  * See the License for the specific language governing permissions
12*15f0b8c3SMartin Matuska  * and limitations under the License.
13*15f0b8c3SMartin Matuska  *
14*15f0b8c3SMartin Matuska  * When distributing Covered Code, include this CDDL HEADER in each
15*15f0b8c3SMartin Matuska  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*15f0b8c3SMartin Matuska  * If applicable, add the following below this CDDL HEADER, with the
17*15f0b8c3SMartin Matuska  * fields enclosed by brackets "[]" replaced with your own identifying
18*15f0b8c3SMartin Matuska  * information: Portions Copyright [yyyy] [name of copyright owner]
19*15f0b8c3SMartin Matuska  *
20*15f0b8c3SMartin Matuska  * CDDL HEADER END
21*15f0b8c3SMartin Matuska  */
22*15f0b8c3SMartin Matuska /*
23*15f0b8c3SMartin Matuska  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24*15f0b8c3SMartin Matuska  * Use is subject to license terms.
25*15f0b8c3SMartin Matuska  */
26*15f0b8c3SMartin Matuska 
27*15f0b8c3SMartin Matuska #ifndef _SYS_ASM_LINKAGE_H
28*15f0b8c3SMartin Matuska #define	_SYS_ASM_LINKAGE_H
29*15f0b8c3SMartin Matuska 
30*15f0b8c3SMartin Matuska #if defined(__i386) || defined(__amd64)
31*15f0b8c3SMartin Matuska 
32*15f0b8c3SMartin Matuska #include <sys/ia32/asm_linkage.h>	/* XX64	x86/sys/asm_linkage.h */
33*15f0b8c3SMartin Matuska 
34*15f0b8c3SMartin Matuska #endif
35*15f0b8c3SMartin Matuska 
36*15f0b8c3SMartin Matuska #if defined(_KERNEL) && defined(HAVE_KERNEL_OBJTOOL)
37*15f0b8c3SMartin Matuska 
38*15f0b8c3SMartin Matuska #include <asm/frame.h>
39*15f0b8c3SMartin Matuska 
40*15f0b8c3SMartin Matuska #else /* userspace */
41*15f0b8c3SMartin Matuska #define	FRAME_BEGIN
42*15f0b8c3SMartin Matuska #define	FRAME_END
43*15f0b8c3SMartin Matuska #endif
44*15f0b8c3SMartin Matuska 
45*15f0b8c3SMartin Matuska 
46*15f0b8c3SMartin Matuska #endif	/* _SYS_ASM_LINKAGE_H */
47