git: libnvmm: More OS independence

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


commit 6393501742abc2bfe66c490447098c982ce8a82c
Author: Aaron LI <aly at aaronly.me>
Date:   Sun Jul 4 11:56:40 2021 +0800

    libnvmm: More OS independence
    
    * Define PTE_* values in 'libnvmm_x86.c' to avoid including some OS
      headers: <machine/pte.h>, <machine/vmparam.h> and <machine/pmap.h>.
    * Redefine __BIT() macro to avoid handling its difference between NetBSD
      and DragonFly.
    * 'nvmm_compat.h' is no longer needed and thus removed.

Summary of changes:
 lib/libnvmm/libnvmm.c     |  5 ++-
 lib/libnvmm/libnvmm_x86.c | 39 +++++++++++++++++++++++
 lib/libnvmm/nvmm.h        |  6 ++--
 lib/libnvmm/nvmm_compat.h | 80 -----------------------------------------------
 4 files changed, 47 insertions(+), 83 deletions(-)
 delete mode 100644 lib/libnvmm/nvmm_compat.h

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/6393501742abc2bfe66c490447098c982ce8a82c


-- 
DragonFly BSD source repository


More information about the Commits mailing list