Home
last modified time | relevance | path

Searched refs:ARCH_MMU_FLAG_PERM_RO (Results 1 – 8 of 8) sorted by relevance

/arch/test/
A Dmmu.cpp143 EXPECT_TRUE(map_region_query_result(kaspace, ARCH_MMU_FLAG_PERM_RO), "1"); in map_query_pages()
146 …EXPECT_TRUE(map_region_query_result(kaspace, ARCH_MMU_FLAG_PERM_RO | ARCH_MMU_FLAG_PERM_NO_EXECUTE… in map_query_pages()
149 …EXPECT_TRUE(map_region_expect_failure(kaspace, ARCH_MMU_FLAG_PERM_RO | ARCH_MMU_FLAG_PERM_NO_EXECU… in map_query_pages()
153 …EXPECT_TRUE(map_region_query_result(kaspace, ARCH_MMU_FLAG_PERM_USER | ARCH_MMU_FLAG_PERM_RO), "5"… in map_query_pages()
156 …T_TRUE(map_region_query_result(kaspace, ARCH_MMU_FLAG_PERM_USER | ARCH_MMU_FLAG_PERM_RO | ARCH_MMU… in map_query_pages()
159 …TRUE(map_region_expect_failure(kaspace, ARCH_MMU_FLAG_PERM_USER | ARCH_MMU_FLAG_PERM_RO | ARCH_MMU… in map_query_pages()
/arch/arm/arm/
A Dmmu.c60 switch (flags & (ARCH_MMU_FLAG_PERM_USER | ARCH_MMU_FLAG_PERM_RO)) { in mmu_flags_to_l1_arch_flags()
64 case ARCH_MMU_FLAG_PERM_RO: in mmu_flags_to_l1_arch_flags()
70 case ARCH_MMU_FLAG_PERM_USER | ARCH_MMU_FLAG_PERM_RO: in mmu_flags_to_l1_arch_flags()
111 switch (flags & (ARCH_MMU_FLAG_PERM_USER | ARCH_MMU_FLAG_PERM_RO)) { in mmu_flags_to_l2_arch_flags_small_page()
115 case ARCH_MMU_FLAG_PERM_RO: in mmu_flags_to_l2_arch_flags_small_page()
121 case ARCH_MMU_FLAG_PERM_USER | ARCH_MMU_FLAG_PERM_RO: in mmu_flags_to_l2_arch_flags_small_page()
274 *flags |= ARCH_MMU_FLAG_PERM_RO; in arch_mmu_query()
279 *flags |= ARCH_MMU_FLAG_PERM_USER | ARCH_MMU_FLAG_PERM_RO; in arch_mmu_query()
325 *flags |= ARCH_MMU_FLAG_PERM_RO; in arch_mmu_query()
330 *flags |= ARCH_MMU_FLAG_PERM_USER | ARCH_MMU_FLAG_PERM_RO; in arch_mmu_query()
/arch/include/arch/
A Dmmu.h29 #define ARCH_MMU_FLAG_PERM_RO (1U<<3) macro
/arch/or1k/
A Dmmu.c97 *flags |= ARCH_MMU_FLAG_PERM_RO; in arch_mmu_query()
150 if (!(flags & ARCH_MMU_FLAG_PERM_RO)) in arch_mmu_map()
/arch/arm64/
A Dmmu.c61 switch (flags & (ARCH_MMU_FLAG_PERM_USER | ARCH_MMU_FLAG_PERM_RO)) { in mmu_flags_to_pte_attr()
65 case ARCH_MMU_FLAG_PERM_RO: in mmu_flags_to_pte_attr()
71 case ARCH_MMU_FLAG_PERM_USER | ARCH_MMU_FLAG_PERM_RO: in mmu_flags_to_pte_attr()
187 *flags |= ARCH_MMU_FLAG_PERM_RO; in arch_mmu_query()
190 *flags |= ARCH_MMU_FLAG_PERM_USER | ARCH_MMU_FLAG_PERM_RO; in arch_mmu_query()
/arch/x86/32/
A Dmmu.c66 if (!(flags & ARCH_MMU_FLAG_PERM_RO)) in get_x86_arch_flags()
85 mmu_flags |= ARCH_MMU_FLAG_PERM_RO; in get_arch_mmu_flags()
/arch/riscv/
A Dmmu.cpp177 pte |= (flags & ARCH_MMU_FLAG_PERM_RO) ? RISCV_PTE_R : (RISCV_PTE_R | RISCV_PTE_W); in mmu_flags_to_pte()
186 f |= ARCH_MMU_FLAG_PERM_RO; in pte_flags_to_mmu_flags()
/arch/x86/64/
A Dmmu.c156 if (!(flags & ARCH_MMU_FLAG_PERM_RO)) in get_x86_arch_flags()
178 mmu_flags |= ARCH_MMU_FLAG_PERM_RO; in get_arch_mmu_flags()

Completed in 27 milliseconds