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