mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-24 18:03:25 +00:00
Fix lint errors
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
82a2c4cdec
commit
cbb4b4e631
@ -73,7 +73,7 @@ const fn nr_pte_index_bits<C: PagingConstsTrait>() -> usize {
|
||||
|
||||
/// The index of a VA's PTE in a page table node at the given level.
|
||||
const fn pte_index<C: PagingConstsTrait>(va: Vaddr, level: PagingLevel) -> usize {
|
||||
va >> (C::BASE_PAGE_SIZE.ilog2() as usize + nr_pte_index_bits::<C>() * (level as usize - 1))
|
||||
(va >> (C::BASE_PAGE_SIZE.ilog2() as usize + nr_pte_index_bits::<C>() * (level as usize - 1)))
|
||||
& (nr_subpage_per_huge::<C>() - 1)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user