git: npx: Extend fpusave/fpurstor() to accept an XSAVE mask argument

Aaron LI aly at crater.dragonflybsd.org
Tue Jul 6 16:34:26 PDT 2021


commit 3fe3fa25b6013483c41450f9eb28b380fdfcd8a9
Author: Aaron LI <aly at aaronly.me>
Date:   Wed Jul 7 07:32:56 2021 +0800

    npx: Extend fpusave/fpurstor() to accept an XSAVE mask argument
    
    XSAVE/XRSTOR requires a mask argument that determines the
    components/states to save/restore.  Thus this argument controls the
    save area size.
    
    Extend fpusave/fpurstor() functions to accept an XSAVE mask argument,
    so the caller can choose the wanted components/states to save/restore
    and knows the exact area size.
    
    NVMM will use this feature.

Summary of changes:
 sys/cpu/x86_64/include/npx.h        |  4 ++--
 sys/platform/pc64/x86_64/npx.c      | 18 +++++++++---------
 sys/platform/vkernel64/x86_64/npx.c | 10 +++++-----
 3 files changed, 16 insertions(+), 16 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3fe3fa25b6013483c41450f9eb28b380fdfcd8a9


-- 
DragonFly BSD source repository


More information about the Commits mailing list