Somehow this didn't get checked in with the rest of the SVR4 64-bit fixes.

This commit is contained in:
eeh 2001-02-22 22:08:06 +00:00
parent 05378de234
commit 121d97c255

View File

@ -1,4 +1,4 @@
/* $NetBSD: svr4_machdep.h,v 1.6 2001/02/11 00:17:03 eeh Exp $ */ /* $NetBSD: svr4_machdep.h,v 1.7 2001/02/22 22:08:06 eeh Exp $ */
/*- /*-
* Copyright (c) 1994 The NetBSD Foundation, Inc. * Copyright (c) 1994 The NetBSD Foundation, Inc.
@ -46,6 +46,9 @@
*/ */
#define SVR4_SPARC_PSR 0 #define SVR4_SPARC_PSR 0
#ifdef _LP64
#define SVR4_SPARC_CCR 0
#endif
#define SVR4_SPARC_PC 1 #define SVR4_SPARC_PC 1
#define SVR4_SPARC_nPC 2 #define SVR4_SPARC_nPC 2
#define SVR4_SPARC_Y 3 #define SVR4_SPARC_Y 3
@ -64,7 +67,13 @@
#define SVR4_SPARC_O5 16 #define SVR4_SPARC_O5 16
#define SVR4_SPARC_O6 17 #define SVR4_SPARC_O6 17
#define SVR4_SPARC_O7 18 #define SVR4_SPARC_O7 18
#define SVR4_SPARC_ASI 19
#define SVR4_SPARC_FPRS 20
#ifdef _LP64
#define SVR4_SPARC_MAXREG 21
#else
#define SVR4_SPARC_MAXREG 19 #define SVR4_SPARC_MAXREG 19
#endif
#define SVR4_SPARC_SP SVR4_SPARC_O6 #define SVR4_SPARC_SP SVR4_SPARC_O6
#define SVR4_SPARC_PS SVR4_SPARC_PSR #define SVR4_SPARC_PS SVR4_SPARC_PSR
@ -88,11 +97,22 @@ typedef svr4_greg_t svr4_gregset_t[SVR4_SPARC_MAXREG];
typedef struct { typedef struct {
union { union {
u_int fp_ri[32]; u_int fp_ri[32];
double fp_rd[16]; #ifdef _LP64
double fp_rd[32];
long double fp_rq[16];
#else
double fp_rd[16];
#endif
} fpu_regs; } fpu_regs;
#ifdef _LP64
unsigned long fp_fsr;
unsigned fp_fprs;
void *fp_q;
#else
void *fp_q; void *fp_q;
unsigned fp_fsr; unsigned fp_fsr;
#endif
u_char fp_nqel; u_char fp_nqel;
u_char fp_nqsize; u_char fp_nqsize;
u_char fp_busy; u_char fp_busy;
@ -105,12 +125,19 @@ typedef struct {
#define SVR4_XRS_ID (('x' << 24) | ('r' << 16) | ('s' << 8)) #define SVR4_XRS_ID (('x' << 24) | ('r' << 16) | ('s' << 8))
typedef long svr4_asrset_t[16]; /* %asr16 - %asr31 */
typedef struct svr4_mcontext { typedef struct svr4_mcontext {
svr4_gregset_t greg; svr4_gregset_t greg;
svr4_gwindow_t *gwin; svr4_gwindow_t *gwin;
svr4_fregset_t freg; svr4_fregset_t freg;
svr4_xrs_t xrs; svr4_xrs_t xrs;
#ifdef _LP64
svr4_asrset_t asrs;
long pad[4];
#else
long pad[19]; long pad[19];
#endif
} svr4_mcontext_t; } svr4_mcontext_t;
#define SVR4_UC_MACHINE_PAD 23 #define SVR4_UC_MACHINE_PAD 23