xref: /illumos-gate/usr/src/cmd/sgs/include/machdep.h (revision 2a8bcb4efb45d99ac41c94a75c396b362c414f7f)
1*ba2be530Sab196087 /*
2*ba2be530Sab196087  * CDDL HEADER START
3*ba2be530Sab196087  *
4*ba2be530Sab196087  * The contents of this file are subject to the terms of the
5*ba2be530Sab196087  * Common Development and Distribution License (the "License").
6*ba2be530Sab196087  * You may not use this file except in compliance with the License.
7*ba2be530Sab196087  *
8*ba2be530Sab196087  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*ba2be530Sab196087  * or http://www.opensolaris.org/os/licensing.
10*ba2be530Sab196087  * See the License for the specific language governing permissions
11*ba2be530Sab196087  * and limitations under the License.
12*ba2be530Sab196087  *
13*ba2be530Sab196087  * When distributing Covered Code, include this CDDL HEADER in each
14*ba2be530Sab196087  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*ba2be530Sab196087  * If applicable, add the following below this CDDL HEADER, with the
16*ba2be530Sab196087  * fields enclosed by brackets "[]" replaced with your own identifying
17*ba2be530Sab196087  * information: Portions Copyright [yyyy] [name of copyright owner]
18*ba2be530Sab196087  *
19*ba2be530Sab196087  * CDDL HEADER END
20*ba2be530Sab196087  */
21*ba2be530Sab196087 
22*ba2be530Sab196087 /*
23*ba2be530Sab196087  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
24*ba2be530Sab196087  * Use is subject to license terms.
25*ba2be530Sab196087  *
26*ba2be530Sab196087  * Global include file for all sgs machine dependent macros, constants
27*ba2be530Sab196087  * and declarations applicable to the current system. This header is
28*ba2be530Sab196087  * to be used for code that supports the native system only. Code that
29*ba2be530Sab196087  * needs to support non-native targets should avoid it, and use the
30*ba2be530Sab196087  * target-specific versions found in the subdirectories below the include
31*ba2be530Sab196087  * directory holding this file.
32*ba2be530Sab196087  */
33*ba2be530Sab196087 
34*ba2be530Sab196087 #ifndef	_MACHDEP_H
35*ba2be530Sab196087 #define	_MACHDEP_H
36*ba2be530Sab196087 
37*ba2be530Sab196087 #if defined(__sparc)
38*ba2be530Sab196087 
39*ba2be530Sab196087 #include <sparc/machdep_sparc.h>
40*ba2be530Sab196087 
41*ba2be530Sab196087 #elif defined(__i386) || defined(__amd64)
42*ba2be530Sab196087 
43*ba2be530Sab196087 #include <i386/machdep_x86.h>
44*ba2be530Sab196087 
45*ba2be530Sab196087 #else
46*ba2be530Sab196087 
47*ba2be530Sab196087 #error "machdep.h does not understand current machine"
48*ba2be530Sab196087 
49*ba2be530Sab196087 #endif
50*ba2be530Sab196087 
51*ba2be530Sab196087 #endif /* _MACHDEP_H */
52