4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright 1997-2002 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
30 #pragma ident "%Z%%M% %I% %E% SMI"
37 * This file is cpu dependent.
43 #include <sys/machparam.h>
47 #define BSTORE_FPREGS(FP, TEMP) \
49 stda %d0, [FP]ASI_BLK_P; \
51 stda %d16, [TEMP]ASI_BLK_P; \
53 stda %d32, [TEMP]ASI_BLK_P; \
55 stda %d48, [TEMP]ASI_BLK_P; \
58 #define BSTORE_V8_FPREGS(FP, TEMP) \
60 stda %d0, [FP]ASI_BLK_P; \
62 stda %d16, [TEMP]ASI_BLK_P; \
65 #define BSTORE_V8P_FPREGS(FP, TEMP) \
68 stda %d32, [TEMP]ASI_BLK_P; \
70 stda %d48, [TEMP]ASI_BLK_P; \
73 #define BLOAD_FPREGS(FP, TEMP) \
75 ldda [FP]ASI_BLK_P, %d0; \
77 ldda [TEMP]ASI_BLK_P, %d16; \
79 ldda [TEMP]ASI_BLK_P, %d32; \
81 ldda [TEMP]ASI_BLK_P, %d48; \
84 #define BLOAD_V8_FPREGS(FP, TEMP) \
86 ldda [FP]ASI_BLK_P, %d0; \
88 ldda [TEMP]ASI_BLK_P, %d16; \
91 #define BLOAD_V8P_FPREGS(FP, TEMP) \
94 ldda [TEMP]ASI_BLK_P, %d32; \
96 ldda [TEMP]ASI_BLK_P, %d48; \
101 #define GSR_SIZE 8 /* Graphics Status Register size 64 bits */
109 #endif /* _SYS_VIS_H */