1 /* 2 * CDDL HEADER START 3 * 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 7 * with the License. 8 * 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. 13 * 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] 19 * 20 * CDDL HEADER END 21 */ 22 /* 23 * Copyright (c) 1989, 1995 by Sun Microsystems, Inc. 24 * All Rights Reserved. 25 */ 26 27 #ifndef _SYS_REG_H 28 #define _SYS_REG_H 29 30 #pragma ident "%Z%%M% %I% %E% SMI" 31 32 #ifdef __cplusplus 33 extern "C" { 34 #endif 35 36 /* 37 * This file only exists for v7 backwards compatibility. 38 * Kernel code should not include it. 39 */ 40 #ifdef _KERNEL 41 #error Kernel include of reg.h 42 #else 43 44 #include <sys/regset.h> 45 46 /* 47 * NWINDOW is obsolete; it exists only for existing application compatibility. 48 */ 49 #define NWINDOW 7 50 51 /* 52 * Location of the users' stored registers relative to R0. 53 * Used as an index into a gregset_t array. 54 */ 55 #define PSR (0) 56 #define PC (1) 57 #define nPC (2) 58 #define Y (3) 59 #define G1 (4) 60 #define G2 (5) 61 #define G3 (6) 62 #define G4 (7) 63 #define G5 (8) 64 #define G6 (9) 65 #define G7 (10) 66 #define O0 (11) 67 #define O1 (12) 68 #define O2 (13) 69 #define O3 (14) 70 #define O4 (15) 71 #define O5 (16) 72 #define O6 (17) 73 #define O7 (18) 74 75 /* 76 * The following defines are for portability. 77 */ 78 #define PS PSR 79 #define SP O6 80 #define R0 O0 81 #define R1 O1 82 83 #endif /* _KERNEL */ 84 85 #ifdef __cplusplus 86 } 87 #endif 88 89 #endif /* _SYS_REG_H */ 90