nvmm: Port to DragonFly #9: atomic operations
authorAaron LI <aly@aaronly.me>
Fri, 14 May 2021 00:09:58 +0000 (08:09 +0800)
committerAaron LI <aly@aaronly.me>
Tue, 15 Jun 2021 13:36:46 +0000 (21:36 +0800)
commitf247c5f5766929017d8adc321aca544594323997
treed5723e6f4950c48030047d258a57f7de114b6b35
parent1f456bd230c4f78314bce383408f1748b792d23a
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.
sys/dev/virtual/nvmm/nvmm.c
sys/dev/virtual/nvmm/nvmm_compat.h
sys/dev/virtual/nvmm/x86/nvmm_x86_vmx.c