/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 1996-1998 by Sun Microsystems, Inc.
* All rights reserved.
*/
#ifndef _SYS_PROCFS_ISA_H
#define _SYS_PROCFS_ISA_H
/*
*/
#ifdef __cplusplus
extern "C" {
#endif
/*
* Possible values of pr_dmodel.
* This isn't isa-specific, but it needs to be defined here for other reasons.
*/
#define PR_MODEL_UNKNOWN 0
/*
* To determine whether application is running native.
*/
#if defined(_LP64)
#else
#error "No DATAMODEL_NATIVE specified"
#endif /* _LP64 || _ILP32 */
/*
* Holds one sparc instruction, for both ILP32 and LP64.
*/
/*
* General register access (sparc).
* Registers are 32 bits for ILP32, 64 bits for LP64.
*/
typedef long prgreg_t;
#else
typedef int prgreg_t;
#endif
#define R_G0 0
#ifdef __sparcv9
#else
#endif
#ifdef __sparcv9
#else
#endif
/*
* The following defines are for portability.
*/
#ifdef __sparcv9
#else
#endif
#if defined(_SYSCALL32)
/*
* kernel view of the _ILP32 register set
*/
#endif
/*
* Floating-point register access (sparc FPU).
*/
#ifdef __sparcv9
typedef struct prfpregset {
union { /* FPU floating point regs */
} pr_fr;
} prfpregset_t;
#else
typedef struct prfpregset {
union { /* FPU floating point regs */
} pr_fr;
} prfpregset_t;
#endif /* __sparcv9 */
#if defined(_SYSCALL32)
/*
* kernel view of the _ILP32 floating point register set
*/
typedef struct prfpregset32 {
union { /* FPU floating point regs */
} pr_fr;
#endif /* _SYSCALL32 */
/*
* Extra register access
*/
#define XR_G0 0
#define XR_O0 0
typedef struct prxregset {
union {
struct pr_v8p {
union { /* extra FP registers */
#ifndef __sparcv9 /* 32-bit alignment problem */
#endif
} pr_xfr;
} pr_v8p;
} pr_un;
} prxregset_t;
/*
* Given a pointer to a prxregset structure, this macro yields the value
* of the %gsr embedded in the structure. It is an lvalue, so it can
* be used to assign the value of the %gsr into the structure.
* (Please don't ask why this is done this way.)
*/
#ifdef __cplusplus
}
#endif
#endif /* _SYS_PROCFS_ISA_H */