Re: [PATCH v2] Issue 64-bit versions of *XSAVE* for 64-bit amd64 programs

2020-10-17 Thread Kamil Rytarowski
The same bug was fixed in FreeBSD here: "amd64: Store full 64bit of FIP/FDP for 64bit processes when using XSAVE." https://github.com/freebsd/freebsd/commit/62a9018a8878533432500e5cb89f9bd07fd9ef14 Kamil Rytarowski CTO, Moritz Systems www.moritz.systems pt., 16 paź 2020 o 15:26 Michał Górny

[PATCH v2] Issue 64-bit versions of *XSAVE* for 64-bit amd64 programs

2020-10-16 Thread Michał Górny
When calling FXSAVE, XSAVE, FXRSTOR, ... for 64-bit programs on amd64 use the 64-suffixed variant in order to include the complete FIP/FDP registers in the x87 area. The difference between the two variants is that the FXSAVE64 (new) variant represents FIP/FDP as 64-bit fields (union