git: nvmm: Port to DragonFly #9: atomic operations

Aaron LI aly at crater.dragonflybsd.org
Tue Jul 20 16:30:18 PDT 2021


commit fb89adb49e0f0beb647ecc9cfaf975a5ceb19a53
Author: Aaron LI <aly at aaronly.me>
Date:   Fri May 14 08:09:58 2021 +0800

    nvmm: Port to DragonFly #9: atomic operations
    
    Add compat defines for NetBSD's atomic_inc_64(), atomic_{inc,dec}_uint().
    However, we don't have an alternative for the type-generic
    atomic_load_relaxed() function.  So just modify the code accordingly.

Summary of changes:
 sys/dev/virtual/nvmm/nvmm.c             | 2 +-
 sys/dev/virtual/nvmm/nvmm_compat.h      | 8 ++++++++
 sys/dev/virtual/nvmm/x86/nvmm_x86_vmx.c | 2 +-
 3 files changed, 10 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/fb89adb49e0f0beb647ecc9cfaf975a5ceb19a53


-- 
DragonFly BSD source repository



More information about the Commits mailing list