diff options
author | Jerry Jelinek <jerry.jelinek@joyent.com> | 2017-04-27 17:31:09 +0000 |
---|---|---|
committer | Jerry Jelinek <jerry.jelinek@joyent.com> | 2017-04-27 17:31:51 +0000 |
commit | 116dc71c1ce421b83a11edca6fe15122f4b49adc (patch) | |
tree | b8deb773451a2030e63378d03e689b1f133b0ad9 /usr/src/uts/intel/sys/fp.h | |
parent | 37cab0115ba9ad25a4faa262d56fff4242ef2775 (diff) | |
download | illumos-joyent-release-20170427.tar.gz |
OS-6064 kernel cpuid support for new processorsrelease-20170427
Reviewed by: Robert Mustacchi <rm@joyent.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Diffstat (limited to 'usr/src/uts/intel/sys/fp.h')
-rw-r--r-- | usr/src/uts/intel/sys/fp.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr/src/uts/intel/sys/fp.h b/usr/src/uts/intel/sys/fp.h index 3373484dec..1b4cce820f 100644 --- a/usr/src/uts/intel/sys/fp.h +++ b/usr/src/uts/intel/sys/fp.h @@ -20,6 +20,7 @@ */ /* * Copyright 2015 Nexenta Systems, Inc. All rights reserved. + * Copyright 2017 Joyent, Inc. * * Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved. */ @@ -231,6 +232,11 @@ struct fxsave_state { /* * This structure is written to memory by an 'xsave' instruction. * First 512 byte is compatible with the format of an 'fxsave' area. + * + * The current size is AVX_XSAVE_SIZE (832 bytes), asserted in fpnoextflt(). + * Enabling MPX and AVX512 requires a total size of 2696 bytes. The locations + * and size of new, extended components are determined dynamically by + * querying the CPU. See the xsave_info structure in cpuid.c. */ struct xsave_state { struct fxsave_state xs_fxsave; @@ -238,7 +244,7 @@ struct xsave_state { uint64_t xs_rsv_mbz[2]; uint64_t xs_reserved[5]; upad128_t xs_ymm[16]; /* avx - 576 */ -}; /* 832 bytes, asserted in fpnoextflt() */ +}; /* * Kernel's FPU save area |