git: npx: Fix XMM register count issue in 'savexmm64' struct
Aaron LI
aly at crater.dragonflybsd.org
Sat Jun 26 01:32:16 PDT 2021
commit 2ad04be3ef89f3567fb7a3623eb88c9ddec1e6c8
Author: Aaron LI <aly at aaronly.me>
Date: Sat Jun 26 13:41:04 2021 +0800
npx: Fix XMM register count issue in 'savexmm64' struct
On 64-bit systems, there are 16 XMM registers (XMM0 - XMM15). And
FXSAVE64/FXRSTOR64 instructions save/restore them to/from the 512-byte
data area.
So fix the 'savexmm64' structure to say 'struct xmmacc sv_xmm[16]', i.e.,
16 XMM registers. The padding area is shrunk accordingly.
This issue is minor and has never caused any problems (because of the
padding area), but still fix it.
While there, adjust various whitespace to look much better.
Summary of changes:
sys/cpu/x86_64/include/npx.h | 42 +++++++++++++++++++++---------------------
1 file changed, 21 insertions(+), 21 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/2ad04be3ef89f3567fb7a3623eb88c9ddec1e6c8
--
DragonFly BSD source repository
More information about the Commits
mailing list