git: cpu/x64_64: Move MMU page table types back to <cpu/pmap.h>.

Rimvydas Jasinskas zrj at crater.dragonflybsd.org
Thu Nov 14 05:37:56 PST 2019


commit 40209b5b88a7b72cd05905efc1ca2105c32f4fbd
Author: zrj <rimvydas.jasinskas at gmail.com>
Date:   Mon Nov 11 11:48:04 2019 +0200

    cpu/x64_64: Move MMU page table types back to <cpu/pmap.h>.
    
     Reduce namespace pollution.  These types are common for both
     pc64/vkernel64 and are used in pmap context only.
     All userland cases need just VM_MAX_USER_ADDRESS, PS_STRINGS constants
     through <machine/vmparam.h> with huge cpp expansion that requires
     <machine/pmap.h> header inclusion anyway.  Simplify it.
    
     * Hard-code NPTEPG/NPDEPG/NPDPEPG/NPML4EPG constants to properly solve
       header inclusion ordering.  The SHIFT constants are hard-coded already
       (log2() values) so there are no reasons to pretend everything will
       adjust automatically.
     * Use LU suffixes, debug printf() in vkernel64 use %ld types.
     * Optionally reorder includes in libc setproctitle.c.
     * Optionally add explicit includes in libkvm where pmap.h is only
       coming from <sys/user.h>.  The kvm_*_x86_64.c use X86_PG_* constants.
    
     For now keep PDESIZE/PTESIZE (used in pc64 genassym.c).
    
     No intermediates differences observed.

Summary of changes:
 lib/libc/gen/setproctitle.c       |  3 +--
 lib/libkvm/kvm_minidump_x86_64.c  |  1 +
 lib/libkvm/kvm_proc.c             |  1 +
 lib/libkvm/kvm_x86_64.c           |  1 +
 sys/cpu/x86_64/include/param.h    | 10 +++++-----
 sys/cpu/x86_64/include/pmap.h     | 23 +++++++++++++++++++++++
 sys/cpu/x86_64/include/types.h    | 12 ------------
 sys/platform/pc64/vmm/vmm_utils.c |  1 +
 8 files changed, 33 insertions(+), 19 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/40209b5b88a7b72cd05905efc1ca2105c32f4fbd


-- 
DragonFly BSD source repository


More information about the Commits mailing list