src/kernel/mm/vmm/vmm.c
/*!
 * @note this function is used for test.
 * @param pool
 */
@note this function is used for test.
@param pool
@note this function is used for test . @param pool
static void _show_page_table(vmm_t * pool,addr_t vaddr){
    pagetable_t pdt = pool->pagetable;
    pte_t * pte;
    for(int level = 2; level >= 0; level--){
        pte = &pdt[_get_pte_index(vaddr, level)];
        if(*pte & VMM_PTE_V) {
            pdt = (pagetable_t)_pte2paddr(*pte);
        }
        else {
            break;
        }
    }
}
static void _show_page_table ( vmm_t * pool , addr_t vaddr ) { pagetable_t pdt = pool -> pagetable ; pte_t * pte ; for ( int level = 2 ; level >= 0 ; level -- ) { pte = & pdt [ _get_pte_index ( vaddr , level ) ] ; if ( * pte & VMM_PTE_V ) { pdt = ( pagetable_t ) _pte2paddr ( * pte ) ; } else { break ; } } }
@note this function is used for test.
@note this function is used for test .