Home
last modified time | relevance | path

Searched refs:pte (Results 1 – 2 of 2) sorted by relevance

/Zephyr-Core-2.7.6/arch/arm64/core/
Dmmu.c51 static inline unsigned int table_index(uint64_t *pte) in table_index() argument
53 unsigned int i = (pte - xlat_tables) / Ln_XLAT_NUM_ENTRIES; in table_index()
55 __ASSERT(i < CONFIG_MAX_XLAT_TABLES, "table %p out of range", pte); in table_index()
116 static void debug_show_pte(uint64_t *pte, unsigned int level) in debug_show_pte() argument
119 MMU_DEBUG("[%d]%p: ", table_index(pte), pte); in debug_show_pte()
121 if (is_free_desc(*pte)) { in debug_show_pte()
126 if (is_table_desc(*pte, level)) { in debug_show_pte()
127 uint64_t *table = pte_desc_table(*pte); in debug_show_pte()
133 if (is_block_desc(*pte)) { in debug_show_pte()
139 uint8_t mem_type = (*pte >> 2) & MT_TYPE_MASK; in debug_show_pte()
[all …]
/Zephyr-Core-2.7.6/arch/x86/core/
Dx86_mmu.c399 static inline bool is_flipped_pte(pentry_t pte) in is_flipped_pte() argument
401 return (pte & MMU_P) == 0 && (pte & PTE_ZERO) != 0; in is_flipped_pte()
880 static inline pentry_t pte_atomic_update(pentry_t *pte, pentry_t update_val, in pte_atomic_update() argument
890 old_val = atomic_pte_get(pte); in pte_atomic_update()
910 } while (atomic_pte_cas(pte, old_val, new_val) == false); in pte_atomic_update()
1923 pentry_t pte = 0; in arch_page_phys_get() local
1929 pentry_get(&level, &pte, z_x86_page_tables_get(), virt); in arch_page_phys_get()
1931 if ((pte & MMU_P) != 0) { in arch_page_phys_get()
1933 *phys = (uintptr_t)get_entry_phys(pte, PTE_LEVEL); in arch_page_phys_get()
2055 pentry_t pte; in arch_page_location_get() local
[all …]