From 121d97c2553761600223466c105cecb9548362d9 Mon Sep 17 00:00:00 2001 From: eeh Date: Thu, 22 Feb 2001 22:08:06 +0000 Subject: [PATCH] Somehow this didn't get checked in with the rest of the SVR4 64-bit fixes. --- sys/arch/sparc64/include/svr4_machdep.h | 33 ++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/sys/arch/sparc64/include/svr4_machdep.h b/sys/arch/sparc64/include/svr4_machdep.h index 50ac2bf0a55e..8ac2d86af17a 100644 --- a/sys/arch/sparc64/include/svr4_machdep.h +++ b/sys/arch/sparc64/include/svr4_machdep.h @@ -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. @@ -46,6 +46,9 @@ */ #define SVR4_SPARC_PSR 0 +#ifdef _LP64 +#define SVR4_SPARC_CCR 0 +#endif #define SVR4_SPARC_PC 1 #define SVR4_SPARC_nPC 2 #define SVR4_SPARC_Y 3 @@ -64,7 +67,13 @@ #define SVR4_SPARC_O5 16 #define SVR4_SPARC_O6 17 #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 +#endif #define SVR4_SPARC_SP SVR4_SPARC_O6 #define SVR4_SPARC_PS SVR4_SPARC_PSR @@ -88,11 +97,22 @@ typedef svr4_greg_t svr4_gregset_t[SVR4_SPARC_MAXREG]; typedef struct { union { - u_int fp_ri[32]; - double fp_rd[16]; + u_int fp_ri[32]; +#ifdef _LP64 + double fp_rd[32]; + long double fp_rq[16]; +#else + double fp_rd[16]; +#endif } fpu_regs; +#ifdef _LP64 + unsigned long fp_fsr; + unsigned fp_fprs; + void *fp_q; +#else void *fp_q; unsigned fp_fsr; +#endif u_char fp_nqel; u_char fp_nqsize; u_char fp_busy; @@ -105,12 +125,19 @@ typedef struct { #define SVR4_XRS_ID (('x' << 24) | ('r' << 16) | ('s' << 8)) +typedef long svr4_asrset_t[16]; /* %asr16 - %asr31 */ + typedef struct svr4_mcontext { svr4_gregset_t greg; svr4_gwindow_t *gwin; svr4_fregset_t freg; svr4_xrs_t xrs; +#ifdef _LP64 + svr4_asrset_t asrs; + long pad[4]; +#else long pad[19]; +#endif } svr4_mcontext_t; #define SVR4_UC_MACHINE_PAD 23