Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/x86/include Add xsh_xcomp_bv and fx_zero, and use u...



details:   https://anonhg.NetBSD.org/src/rev/f59225cfaabc
branches:  trunk
changeset: 357204:f59225cfaabc
user:      maxv <maxv%NetBSD.org@localhost>
date:      Tue Oct 31 10:39:13 2017 +0000

description:
Add xsh_xcomp_bv and fx_zero, and use uint8_t instead.

diffstat:

 sys/arch/x86/include/cpu_extended_state.h |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (32 lines):

diff -r e1a1f918e360 -r f59225cfaabc sys/arch/x86/include/cpu_extended_state.h
--- a/sys/arch/x86/include/cpu_extended_state.h Tue Oct 31 10:35:58 2017 +0000
+++ b/sys/arch/x86/include/cpu_extended_state.h Tue Oct 31 10:39:13 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu_extended_state.h,v 1.11 2017/08/10 12:46:31 maxv Exp $     */
+/*     $NetBSD: cpu_extended_state.h,v 1.12 2017/10/31 10:39:13 maxv Exp $     */
 
 #ifndef _X86_CPU_EXTENDED_STATE_H_
 #define _X86_CPU_EXTENDED_STATE_H_
@@ -106,6 +106,7 @@
        uint16_t fx_cw;         /* FPU Control Word */
        uint16_t fx_sw;         /* FPU Status Word */
        uint8_t fx_tw;          /* FPU Tag Word (abridged) */
+       uint8_t fx_zero;        /* zero */
        uint16_t fx_opcode;     /* FPU Opcode */
        union fp_addr fx_ip;    /* FPU Instruction Pointer */
        union fp_addr fx_dp;    /* FPU Data pointer */
@@ -131,10 +132,11 @@
  * For XSAVE, a 64byte header follows the fxsave data.
  */
 struct xsave_header {
-       uint64_t xsh_fxsave[64];        /* to align in the union */
+       uint8_t xsh_fxsave[512];        /* to align in the union */
        uint64_t xsh_xstate_bv;         /* bitmap of saved sub structures */
-       uint64_t xsh_rsrvd[2];          /* must be zero */
-       uint64_t xsh_reserved[5];       /* best if zero */
+       uint64_t xsh_xcomp_bv;          /* bitmap of compact sub structures */
+       uint8_t xsh_rsrvd[8];           /* must be zero */
+       uint8_t xsh_reserved[40];       /* best if zero */
 };
 __CTASSERT(sizeof(struct xsave_header) == 512 + 64);
 



Home | Main Index | Thread Index | Old Index