git: pmap: Move pmap_pte_index() and remove pmap_{pde, pdpe, pml4e}_index()

Aaron LI aly at crater.dragonflybsd.org
Sat Jun 19 03:51:39 PDT 2021


commit 4b01284d90385318ff458d812cc53198a59b0cdf
Author: Aaron LI <aly at aaronly.me>
Date:   Sat Jun 5 13:03:03 2021 +0800

    pmap: Move pmap_pte_index() and remove pmap_{pde,pdpe,pml4e}_index()
    
    * Move pmap_pte_index() from 'pmap.h' to pc64/pmap.c since it's only
      used there.  (vkernel64 has the same function in its pmap.c)
    * Remove unused pmap_pde_index(), pmap_pdpe_index() and
      pmap_pml4e_index() functions from 'pmap.h'.  Well, the same
      functionalities are implemented in pmap.c as pmap_pt_index(),
      pmap_pd_index() and pmap_pdp_index(), respectively.
    * Improve the description of these functions a bit.

Summary of changes:
 sys/platform/pc64/include/pmap.h | 39 ---------------------------------------
 sys/platform/pc64/x86_64/pmap.c  | 31 +++++++++++++++++++++----------
 2 files changed, 21 insertions(+), 49 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/4b01284d90385318ff458d812cc53198a59b0cdf


-- 
DragonFly BSD source repository


More information about the Commits mailing list