npx: Fix XMM register count issue in 'savexmm64' struct
authorAaron LI <aly@aaronly.me>
Sat, 26 Jun 2021 05:41:04 +0000 (13:41 +0800)
committerAaron LI <aly@aaronly.me>
Sat, 26 Jun 2021 08:31:12 +0000 (16:31 +0800)
commit2ad04be3ef89f3567fb7a3623eb88c9ddec1e6c8
tree0aa6e438deac266a9028d1c7de2ae1beaddea87e
parent357acec758c85c13762a39118fa4ec38662d8fbf
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.
sys/cpu/x86_64/include/npx.h