zircon/kernel/arch/x86/page_tables/page_tables.cc
// Return the page size for this level
Return the page size for this level
Return the page size for this level
size_t page_size(PageTableLevel level) {
  switch (level) {
    case PT_L:
      return 1ULL << PT_SHIFT;
    case PD_L:
      return 1ULL << PD_SHIFT;
    case PDP_L:
      return 1ULL << PDP_SHIFT;
    case PML4_L:
      return 1ULL << PML4_SHIFT;
    default:
      panic("page_size: invalid level\n");
  }
}
size_t page_size ( PageTableLevel level ) { switch ( level ) { case PT_L : return 1ULL << PT_SHIFT ; case PD_L : return 1ULL << PD_SHIFT ; case PDP_L : return 1ULL << PDP_SHIFT ; case PML4_L : return 1ULL << PML4_SHIFT ; default : panic ( " \n " ) ; } }
Return the page size for this level
Return the page size for this level