git: nvmm: Add back NetBSD bits
Aaron LI
aly at crater.dragonflybsd.org
Tue Jul 20 16:30:37 PDT 2021
commit 8a0a54bf1b2d5a47a44eb96b452cc7a0d77d83fd
Author: Aaron LI <aly at aaronly.me>
Date: Sun Jul 18 20:03:57 2021 +0800
nvmm: Add back NetBSD bits
Bring back the NetBSD bits lost during the porting. One minor change is
required: MODULE_CLASS_MISC -> MODULE_CLASS_DRIVER. Otherwise, loading
nvmm.kmod would fail with error:
module error: incompatible module class 1 for `nvmm' (wanted 3)
Now the same code builds and works on NetBSD (of course, NetBSD requires
a different set of Makefiles).
Summary of changes:
sys/dev/virtual/nvmm/nvmm_netbsd.c | 236 ++++++++++++++++++++++++++++
sys/dev/virtual/nvmm/x86/nvmm_x86_svm.c | 6 +-
sys/dev/virtual/nvmm/x86/nvmm_x86_svmfunc.S | 23 ++-
sys/dev/virtual/nvmm/x86/nvmm_x86_vmx.c | 6 +-
sys/dev/virtual/nvmm/x86/nvmm_x86_vmxfunc.S | 13 +-
5 files changed, 277 insertions(+), 7 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8a0a54bf1b2d5a47a44eb96b452cc7a0d77d83fd
--
DragonFly BSD source repository
More information about the Commits
mailing list