git: x86_64/cpufunc.h: Add rxcr() and rename xsetbv() to load_xcr()

Aaron LI aly at crater.dragonflybsd.org
Thu Jun 24 07:39:10 PDT 2021


commit 23bf518b8690750023fb9f37577469601a98fa50
Author: Aaron LI <aly at aaronly.me>
Date:   Mon May 10 07:27:17 2021 +0800

    x86_64/cpufunc.h: Add rxcr() and rename xsetbv() to load_xcr()
    
    * rxcr() is taken from FreeBSD with minor changes.
    * Rename xsetbv() to load_xcr(), being consistent with rxcr() and other
      rcrX() and load_rcX() functions. (FreeBSD also uses load_xcr().)
    * Clean up a bit and use standard int types.
    
    These two functions would be used in NVMM.

Summary of changes:
 sys/cpu/x86_64/include/cpufunc.h   | 13 +++++++++++--
 sys/platform/pc64/x86_64/initcpu.c |  2 +-
 2 files changed, 12 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/23bf518b8690750023fb9f37577469601a98fa50


-- 
DragonFly BSD source repository



More information about the Commits mailing list