fn translate_va(&self, va: usize) -> usize {
        let mut pa = [0u64; 1];
        sys_get_paddr(&[va as u64], &mut pa[..]);
        pa[0] as usize
    }
// Translate virtual address to physical address
Translate virtual address to physical address
Translate virtual address to physical address
fn translate_va(&self, va: usize) -> usize {
        let mut pa = [0u64; 1];
        sys_get_paddr(&[va as u64], &mut pa[..]);
        pa[0] as usize
    }
fn translate_va ( & self , va : usize ) -> usize { let mut pa = [ 0u64 ; 1 ] ; sys_get_paddr ( & [ va as u64 ] , & mut pa [ .. ] ) ; pa [ 0 ] as usize }
Translate virtual address to physical address
Translate virtual address to physical address
&self
va
usize
&self
va
usize