
the maximum size of the Xsave area was previously hardcoded but the CPUID instruction can be used to determine its maximum size.
8 lines
101 B
Go
8 lines
101 B
Go
//+build !amd64
|
|
|
|
package amd64util
|
|
|
|
func AMD64XstateMaxSize() int {
|
|
return _XSTATE_MAX_KNOWN_SIZE
|
|
}
|