From 116dc71c1ce421b83a11edca6fe15122f4b49adc Mon Sep 17 00:00:00 2001 From: Jerry Jelinek Date: Thu, 27 Apr 2017 17:31:09 +0000 Subject: OS-6064 kernel cpuid support for new processors Reviewed by: Robert Mustacchi Approved by: Robert Mustacchi --- usr/src/uts/intel/sys/fp.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'usr/src/uts/intel/sys/fp.h') 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 -- cgit v1.2.3